github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/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/onflow/flow-go/network/topology" 9 "github.com/onflow/flow-go/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 }