Skip to content

Commit ba17b9a

Browse files
authored
fix(f3): use the correct context in tests (#12582)
1 parent 4586794 commit ba17b9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

itests/f3_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ func setupWithStaticManifest(t *testing.T, manif *manifest.Manifest, testBootstr
265265
m, err := n1.F3GetManifest(ctx)
266266
require.NoError(t, err)
267267

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

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

0 commit comments

Comments
 (0)