fix bug
This commit is contained in:
1 parent
d334b903e4
commit
973996184d
1 file changed
+1
-1
@@ -17,7 +17,7 @@ type mockChannelConnection struct {
|
||||
// Construct a "passive" Router, i.e. without any goroutines, except
|
||||
// for Routes and GossipSenders.
|
||||
func NewTestRouter(name PeerName) *Router {
|
||||
router := NewRouter(RouterConfig{Name: name})
|
||||
router := NewRouter(RouterConfig{}, name, "")
|
||||
// need to create a dummy channel otherwise tests hang on nil
|
||||
// channels when the Router invoked ConnectionMaker.Refresh
|
||||
router.ConnectionMaker.actionChan = make(chan ConnectionMakerAction, ChannelSize)
|
||||
|
||||
Reference in new issue
Block a user