Skip to content

Commit

Permalink
test: use two nodes in publish
Browse files Browse the repository at this point in the history
This spin up online nodes instead of offline ones.


This commit was moved from ipfs/interface-go-ipfs-core@a8d2741
  • Loading branch information
Jorropo committed Feb 10, 2023
1 parent 48f8c69 commit 54d20f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coreiface/tests/routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (tp *TestSuite) TestRoutingGet(t *testing.T) {
func (tp *TestSuite) TestRoutingPut(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
apis, err := tp.MakeAPISwarm(ctx, true, 1)
apis, err := tp.MakeAPISwarm(ctx, true, 2)
if err != nil {
t.Fatal(err)
}
Expand All @@ -85,7 +85,7 @@ func (tp *TestSuite) TestRoutingPut(t *testing.T) {
}

// Put routing value.
err = apis[0].Routing().Put(ctx, "/ipns/"+ipnsEntry.Name(), data)
err = apis[1].Routing().Put(ctx, "/ipns/"+ipnsEntry.Name(), data)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 54d20f0

Please sign in to comment.