Skip to content

Commit

Permalink
fix(f3): use the correct context in tests (#12582)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien authored Oct 11, 2024
1 parent 4586794 commit ba17b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions itests/f3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,12 @@ func setupWithStaticManifest(t *testing.T, manif *manifest.Manifest, testBootstr
m, err := n1.F3GetManifest(ctx)
require.NoError(t, err)

e := &testEnv{m: m, t: t, testCtx: context.Background()}
e := &testEnv{m: m, t: t, testCtx: ctx}
// in case we want to use more full-nodes in the future
e.minerFullNodes = []*kit.TestFullNode{&n1, &n2, &n3}

// create manifest sender and connect to full-nodes
e.ms = e.newManifestSender(context.Background(), t, manifestServerHost, blocktime)
e.ms = e.newManifestSender(ctx, t, manifestServerHost, blocktime)
for _, n := range e.minerFullNodes {
err = n.NetConnect(ctx, e.ms.PeerInfo())
require.NoError(t, err)
Expand Down

0 comments on commit ba17b9a

Please sign in to comment.