We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ee0bc commit 12a2221Copy full SHA for 12a2221
cmd/testwrapper/flakytest/flakytest_test.go
@@ -28,13 +28,16 @@ func TestIssueFormat(t *testing.T) {
28
}
29
30
31
+// TestFlakeRun is a test that fails when run in the testwrapper
32
+// for the first time, but succeeds on the second run.
33
+// It's used to test whether the testwrapper retries flaky tests.
34
func TestFlakeRun(t *testing.T) {
35
Mark(t, "https://github.com/tailscale/tailscale/issues/0") // random issue
36
e := os.Getenv(FlakeAttemptEnv)
37
if e == "" {
38
t.Skip("not running in testwrapper")
39
40
if e == "1" {
- t.Fatal("failing on purpose")
41
+ t.Fatal("First run in testwrapper, failing so that test is retried. This is expected.")
42
43
0 commit comments