mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 13:57:52 +08:00
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:
parent
3f7c35bdb9
commit
3b6647ffdc
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user