fixing build on master (broken by 68ef0e)
This commit is contained in:
1 parent
a27516b0bf
commit
ce2e80d861
1 file changed
+3
-2
@@ -1,9 +1,10 @@
|
|||||||
package router
|
package router
|
||||||
|
|
||||||
import (
|
import (
|
||||||
wt "github.com/weaveworks/weave/testing"
|
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
wt "github.com/weaveworks/weave/testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO test gossip unicast and broadcast; atm we only test topology
|
// TODO test gossip unicast and broadcast; atm we only test topology
|
||||||
@@ -17,7 +18,7 @@ type mockChannelConnection struct {
|
|||||||
// Construct a "passive" Router, i.e. without any goroutines, except
|
// Construct a "passive" Router, i.e. without any goroutines, except
|
||||||
// for Routes and GossipSenders.
|
// for Routes and GossipSenders.
|
||||||
func NewTestRouter(name PeerName) *Router {
|
func NewTestRouter(name PeerName) *Router {
|
||||||
router := NewRouter(RouterConfig{}, name, "")
|
router := NewRouter(Config{}, name, "")
|
||||||
// need to create a dummy channel otherwise tests hang on nil
|
// need to create a dummy channel otherwise tests hang on nil
|
||||||
// channels when the Router invoked ConnectionMaker.Refresh
|
// channels when the Router invoked ConnectionMaker.Refresh
|
||||||
router.ConnectionMaker.actionChan = make(chan ConnectionMakerAction, ChannelSize)
|
router.ConnectionMaker.actionChan = make(chan ConnectionMakerAction, ChannelSize)
|
||||||
|
|||||||
Reference in new issue
Block a user