<commit_before>package dht

import (
	"context"
	"testing"

	"github.com/nimona/go-nimona/mesh"
	"github.com/nimona/go-nimona/wire"

	"github.com/stretchr/testify/mock"
	"github.com/stretchr/testify/suite"
)

type dhtTestSuite struct {
	suite.Suite
	registry mesh.Registry
	wire     *wire.MockWire
	peerID   string
	messages chan interface{}
	peers    chan interface{}
	dht      *DHT
}

func (suite *dhtTestSuite) SetupTest() {
	peer1, err := mesh.CreateNewPeer()
	suite.NoError(err)

	suite.messages = make(chan interface{}, 10)
	suite.peers = make(chan interface{}, 10)
	suite.registry = mesh.NewRegisty(peer1)
	suite.registry.PutPeerInfo(&mesh.PeerInfo{
		ID: "bootstrap",<commit_msg>Fix dht test<commit_after>package dht

import (
	"context"
	"testing"

	"github.com/nimona/go-nimona/mesh"
	"github.com/nimona/go-nimona/wire"

	"github.com/stretchr/testify/mock"
	"github.com/stretchr/testify/suite"
)

type dhtTestSuite struct {
	suite.Suite
	registry mesh.Registry
	wire     *wire.MockWire
	peerID   string
	messages chan interface{}
	peers    chan interface{}
	dht      *DHT
}

func (suite *dhtTestSuite) SetupTest() {
	suite.messages = make(chan interface{}, 10)
	suite.peers = make(chan interface{}, 10)
	suite.registry = mesh.NewRegisty()
	peer1, _ := suite.registry.CreateNewPeer()
	suite.registry.PutLocalPeerInfo(peer1)
	suite.registry.PutPeerInfo(&mesh.PeerInfo{
		ID: "bootstrap",
{'fraction_non_alphanumeric': 0.13046594982078852, 'fraction_numerical': 0.008602150537634409, 'mean_word_length': 4.410852713178294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4390587', 'n_tokens_mistral': 533, 'n_tokens_neox': 521, 'n_words': 96}