fixing build on master (broken by 68ef0e)

This commit is contained in:
Paul Bellamy committed 2015-05-27 17:37:13 +01:00
1 parent a27516b0bf
commit ce2e80d861
1 file changed
+3 -2
+3 -2
View File
@@ -1,9 +1,10 @@
package router
import (
wt "github.com/weaveworks/weave/testing"
"testing"
"time"
wt "github.com/weaveworks/weave/testing"
)
// 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
// for Routes and GossipSenders.
func NewTestRouter(name PeerName) *Router {
router := NewRouter(RouterConfig{}, name, "")
router := NewRouter(Config{}, 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)