Skip to content

Commit

Permalink
Use route finder in router config for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nkryuchkov committed Sep 4, 2019
1 parent 7a218cb commit 253e89b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/router/router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/skycoin/skywire/pkg/app"
routeFinder "github.com/skycoin/skywire/pkg/route-finder/client"
"github.com/skycoin/skywire/pkg/routing"
"github.com/skycoin/skywire/pkg/snet"
"github.com/skycoin/skywire/pkg/snet/snettest"
Expand Down Expand Up @@ -214,7 +215,7 @@ func (e *TestEnv) GenRouterConfig(i int) *Config {
SecKey: e.TpMngrConfs[i].SecKey,
TransportManager: e.TpMngrs[i],
RoutingTable: routing.InMemoryRoutingTable(),
RouteFinder: nil, // TODO
RouteFinder: routeFinder.NewMock(),
SetupNodes: nil, // TODO
GarbageCollectDuration: DefaultGarbageCollectDuration,
}
Expand Down

0 comments on commit 253e89b

Please sign in to comment.