Skip to content

Commit

Permalink
fix: robustness of trustless gateway spec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Aug 15, 2023
1 parent 140d6fe commit f9bf706
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/internal/itest/trustless_fetch_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build !race

package itest

import (
Expand Down Expand Up @@ -55,11 +57,13 @@ func TestTrustlessUnixfsFetch(t *testing.T) {
mrn.AddGraphsyncPeers(1, testpeer.WithLinkSystem(lsys))
finishedChan = mocknet.SetupRetrieval(t, mrn.Remotes[0])
case "bitswap":
mrn.AddBitswapPeers(1, testpeer.WithLinkSystem(lsys))
mrn.AddBitswapPeers(4, testpeer.WithLinkSystem(lsys))
}

require.NoError(t, mrn.MN.LinkAll())
mrn.Remotes[0].Cids[tc.Root] = struct{}{}
for _, p := range mrn.Remotes {
p.Cids[tc.Root] = struct{}{}
}

lassie, err := lassie.NewLassie(
ctx,
Expand Down

0 comments on commit f9bf706

Please sign in to comment.