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@a8d2741bbe

This commit was moved from ipfs/boxo@54d20f0173
This commit is contained in:
Jorropo 2023-02-10 03:25:12 +01:00
parent 3f7c35bdb9
commit 3b6647ffdc

View File

@ -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)
}
@ -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)
}