Skip to content

Commit

Permalink
Fixed duplicate allocCtx
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin-Kaiser committed Apr 11, 2023
1 parent abf1adc commit 112c324
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chromedp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ func TestCancelError(t *testing.T) {
t.Fatalf("expected a nil error, got %v", err)
}

allocCtx, allocCancel := NewExecAllocator(context.Background(), allocOpts...)
defer allocCancel()
if err := Cancel(allocCtx); err != ErrInvalidContext {
t.Fatalf("want error %q, got %q", ErrInvalidContext, err)
}
Expand Down

0 comments on commit 112c324

Please sign in to comment.