Skip to content

Commit 0335a98

Browse files
committed
fix: honor caller context when looking up the reaper container
1 parent e0475c1 commit 0335a98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

reaper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ func (r *reaperSpawner) reuseOrCreate(ctx context.Context, sessionID string, pro
337337

338338
// Look for an existing reaper created in the same test session but in a
339339
// different test process execution e.g. when running tests in parallel.
340-
container, err := r.lookupContainer(context.Background(), sessionID)
340+
container, err := r.lookupContainer(ctx, sessionID)
341341
if err != nil {
342342
if !errors.Is(err, errReaperNotFound) {
343343
return nil, fmt.Errorf("look up container: %w", err)

0 commit comments

Comments
 (0)