github.com/koko1123/flow-go-1@v0.29.6/network/topology/full_test.go (about) 1 package topology_test 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 8 "github.com/koko1123/flow-go-1/network/topology" 9 "github.com/koko1123/flow-go-1/utils/unittest" 10 ) 11 12 // TestFullTopology checks that FullyConnectedTopology always returns the input list as the fanout. 13 func TestFullTopology(t *testing.T) { 14 ids := unittest.IdentityListFixture(10) 15 top := topology.NewFullyConnectedTopology() 16 require.Equal(t, ids, top.Fanout(ids)) 17 }