@@ -47,7 +47,7 @@ func TestHybridNetwork_DuplicateConn(t *testing.T) {
4747
4848 relayCfg := cfg
4949 relayCfg .ForceRelayMessages = true
50- netA , err := NewHybridP2PNetwork (log .With ("node" , "netA" ), relayCfg , p2pKeyDir , nil , genesisInfo , & nopeNodeInfo {}, & BaseMeshCreator {})
50+ netA , err := NewHybridP2PNetwork (log .With ("node" , "netA" ), relayCfg , p2pKeyDir , nil , genesisInfo , & nopeNodeInfo {}, & baseMeshCreator {})
5151 require .NoError (t , err )
5252
5353 err = netA .Start ()
@@ -66,7 +66,7 @@ func TestHybridNetwork_DuplicateConn(t *testing.T) {
6666 relayCfg .NetAddress = addr
6767 relayCfg .PublicAddress = addr
6868 relayCfg .P2PHybridNetAddress = "127.0.0.1:0"
69- netA , err = NewHybridP2PNetwork (log .With ("node" , "netA" ), relayCfg , p2pKeyDir , nil , genesisInfo , & nopeNodeInfo {}, & BaseMeshCreator {})
69+ netA , err = NewHybridP2PNetwork (log .With ("node" , "netA" ), relayCfg , p2pKeyDir , nil , genesisInfo , & nopeNodeInfo {}, & baseMeshCreator {})
7070 require .NoError (t , err )
7171
7272 err = netA .Start ()
@@ -87,14 +87,14 @@ func TestHybridNetwork_DuplicateConn(t *testing.T) {
8787
8888 phoneBookAddresses := []string {multiAddrStr , addr }
8989
90- netB , err := NewHybridP2PNetwork (log .With ("node" , "netB" ), cfg , "" , phoneBookAddresses , genesisInfo , & nopeNodeInfo {}, & BaseMeshCreator {})
90+ netB , err := NewHybridP2PNetwork (log .With ("node" , "netB" ), cfg , "" , phoneBookAddresses , genesisInfo , & nopeNodeInfo {}, & baseMeshCreator {})
9191 require .NoError (t , err )
9292 // for netB start the p2p network first
9393 err = netB .p2pNetwork .Start ()
9494 require .NoError (t , err )
9595 defer netB .Stop ()
9696
97- netC , err := NewHybridP2PNetwork (log .With ("node" , "netC" ), cfg , "" , phoneBookAddresses , genesisInfo , & nopeNodeInfo {}, & BaseMeshCreator {})
97+ netC , err := NewHybridP2PNetwork (log .With ("node" , "netC" ), cfg , "" , phoneBookAddresses , genesisInfo , & nopeNodeInfo {}, & baseMeshCreator {})
9898 require .NoError (t , err )
9999 // for netC start the ws network first
100100 err = netC .wsNetwork .Start ()
@@ -193,12 +193,12 @@ func TestHybridNetwork_ValidateConfig(t *testing.T) {
193193 cfg .P2PHybridNetAddress = ""
194194 genesisInfo := GenesisInfo {genesisID , "net" }
195195
196- _ , err := NewHybridP2PNetwork (logging .TestingLog (t ), cfg , "" , nil , genesisInfo , & nopeNodeInfo {}, & BaseMeshCreator {})
196+ _ , err := NewHybridP2PNetwork (logging .TestingLog (t ), cfg , "" , nil , genesisInfo , & nopeNodeInfo {}, & baseMeshCreator {})
197197 require .ErrorContains (t , err , "both NetAddress and P2PHybridNetAddress" )
198198
199199 cfg .NetAddress = ""
200200 cfg .P2PHybridNetAddress = ":0"
201- _ , err = NewHybridP2PNetwork (logging .TestingLog (t ), cfg , "" , nil , genesisInfo , & nopeNodeInfo {}, & BaseMeshCreator {})
201+ _ , err = NewHybridP2PNetwork (logging .TestingLog (t ), cfg , "" , nil , genesisInfo , & nopeNodeInfo {}, & baseMeshCreator {})
202202 require .ErrorContains (t , err , "both NetAddress and P2PHybridNetAddress" )
203203}
204204
0 commit comments