test: use two nodes in publish
This spin up online nodes instead of offline ones. This commit was moved from ipfs/interface-go-ipfs-core@a8d2741bbe08a6ba54cf4a4e229eff6978be1b77 This commit was moved from ipfs/boxo@54d20f01739e73f7c770db8f2dc0be1c2185ce20
Jorropo committed
Feb 10, 2023 at 03:25 UTC
3b6647ffdc86bfe219a52ccb9b48d4f4608d5bb7
1 file changed
+2
-2
core/coreiface/tests/routing.go
+2
-2
@@ -70,7 +70,7 @@ func (tp *TestSuite) TestRoutingGet(t *testing.T) {
70
func (tp *TestSuite) TestRoutingPut(t *testing.T) {
71
ctx, cancel := context.WithCancel(context.Background())
72
defer cancel()
73
- apis, err := tp.MakeAPISwarm(ctx, true, 1)
73
+ apis, err := tp.MakeAPISwarm(ctx, true, 2)
74
if err != nil {
75
t.Fatal(err)
76
}
@@ -85,7 +85,7 @@ func (tp *TestSuite) TestRoutingPut(t *testing.T) {
85
}
86
87
// Put routing value.
88
- err = apis[0].Routing().Put(ctx, "/ipns/"+ipnsEntry.Name(), data)
88
+ err = apis[1].Routing().Put(ctx, "/ipns/"+ipnsEntry.Name(), data)
89
if err != nil {
90
t.Fatal(err)
91
}