Skip to content

Commit

Permalink
Clean up TestCancelreader
Browse files Browse the repository at this point in the history
  • Loading branch information
theclapp committed Mar 20, 2024
1 parent 1235810 commit b60d301
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions interp/interp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3992,13 +3992,7 @@ func TestCancelreader(t *testing.T) {
errChan <- r.Run(ctx, file)
}()

go func() {
<-ctx.Done()
t.Logf("context cancelled after %v", time.Since(now))
}()

timeout := 500 * time.Millisecond
timeout = 5 * time.Second
select {
case err := <-errChan:
if err == nil || err.Error() != "exit status 1" || ctx.Err() != context.DeadlineExceeded {
Expand Down

0 comments on commit b60d301

Please sign in to comment.