Skip to content

Commit

Permalink
cmd/go: delete useless env var setting in test
Browse files Browse the repository at this point in the history
The correct spelling is asyncpreemptoff=1,
but clearly this test doesn't need it.

Change-Id: Ic69cf5be04bf90d357a6e4d8ae3f9011f1779922
Reviewed-on: https://go-review.googlesource.com/c/go/+/430575
TryBot-Result: Gopher Robot <[email protected]>
Auto-Submit: Russ Cox <[email protected]>
Run-TryBot: Russ Cox <[email protected]>
Reviewed-by: Bryan Mills <[email protected]>
  • Loading branch information
rsc authored and gopherbot committed Sep 16, 2022
1 parent e4a2c38 commit b35b4a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cmd/go/testdata/script/test_cleanup_failnow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
[short] skip

# This test could fail if the testing package does not wait until
# a panicking test does the panic. Turn off multithreading, GC, and
# async preemption to increase the probability of such a failure.
# a panicking test does the panic. Turn off multithreading and GC
# to increase the probability of such a failure.
env GOMAXPROCS=1
env GOGC=off
env GODEBUG=asyncpreempt=off

# If the test exits with 'no tests to run', it means the testing package
# implementation is incorrect and does not wait until a test panic.
Expand Down

0 comments on commit b35b4a3

Please sign in to comment.