Skip to content

Commit 46c01a8

Browse files
committed
wip 2
1 parent 21bc927 commit 46c01a8

File tree

3 files changed

+539
-401
lines changed

3 files changed

+539
-401
lines changed

tools/flakeguard/runner/example_test_package/example_tests_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,13 @@ func TestNestedSubtests(t *testing.T) {
316316
})
317317
})
318318
}
319+
320+
func TestParentWithFailingSubtest(t *testing.T) {
321+
// The parent does NOT fail. Only subtests do.
322+
t.Run("FailingSubtest", func(t *testing.T) {
323+
t.Errorf("This subtest always fails.")
324+
})
325+
t.Run("PassingSubtest", func(t *testing.T) {
326+
// pass
327+
})
328+
}

0 commit comments

Comments
 (0)