@cryptotaxi247 / kubo / commits / 9a9310df1

test: fix namesys test

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Mar 27, 2019 at 15:26 UTC 9a9310df107107b4e0dfaa6283e4b1d0cdc0d8f2
1 file changed +5 -1
namesys/namesys_test.go
+5 -1
@@ -15,6 +15,7 @@ import (
15 ci "github.com/libp2p/go-libp2p-crypto"
16 peer "github.com/libp2p/go-libp2p-peer"
17 pstoremem "github.com/libp2p/go-libp2p-peerstore/pstoremem"
18 + record "github.com/libp2p/go-libp2p-record"
19 )
20
21 type mockResolver struct {
@@ -97,7 +98,10 @@ func TestPublishWithCache0(t *testing.T) {
98 t.Fatal(err)
99 }
100
100 - routing := offroute.NewOfflineRouter(dst, ipns.Validator{KeyBook: ps})
101 + routing := offroute.NewOfflineRouter(dst, record.NamespacedValidator{
102 + "ipns": ipns.Validator{KeyBook: ps},
103 + "pk": record.PublicKeyValidator{},
104 + })
105
106 nsys := NewNameSystem(routing, dst, 0)
107 p, err := path.ParsePath(unixfs.EmptyDirNode().Cid().String())