aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2021-12-06 12:31:27 -0500
committerJulie Qiu <julie@golang.org>2021-12-09 14:38:39 +0000
commit61ba0bcf8eebd1515d1af7a0e918bf912db6eb46 (patch)
tree959330602a6a3fff62e1b877667ec65df86fc65b /src/cmd/go
parent474ebb917cb802bf1d08434a265515d50c174082 (diff)
downloadgo-61ba0bcf8eebd1515d1af7a0e918bf912db6eb46.tar.gz
go-61ba0bcf8eebd1515d1af7a0e918bf912db6eb46.zip
cmd/go: use -count=1 in test_fuzz_chatty.txt
Fuzz tests in test_fuzz_chatty.txt now use -count=1 where applicable. Fixes #48984 Change-Id: If1673924af990fe12d5dfba95082ccb573806fde Reviewed-on: https://go-review.googlesource.com/c/go/+/369674 Trust: Julie Qiu <julie@golang.org> Trust: Katie Hockman <katie@golang.org> Reviewed-by: Katie Hockman <katie@golang.org>
Diffstat (limited to 'src/cmd/go')
-rw-r--r--src/cmd/go/testdata/script/test_fuzz_chatty.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/go/testdata/script/test_fuzz_chatty.txt b/src/cmd/go/testdata/script/test_fuzz_chatty.txt
index 1abcbbd389..d07fe50f95 100644
--- a/src/cmd/go/testdata/script/test_fuzz_chatty.txt
+++ b/src/cmd/go/testdata/script/test_fuzz_chatty.txt
@@ -37,11 +37,9 @@ go test -v chatty_with_test_fuzz_test.go -fuzz=Fuzz -fuzztime=1x
stdout ok
stdout PASS
! stdout FAIL
-# TODO: It's currently the case that it's logged twice. Fix that, and change
-# this check to verify it.
-stdout 'all good here'
+stdout -count=1 'all good here'
# Verify that the unit test is only run once.
-! stdout '(?s)logged foo.*logged foo'
+stdout -count=1 'logged foo'
-- chatty_error_fuzz_test.go --
package chatty_error_fuzz