Skip to content

Commit 0f2636e

Browse files
derekmauroliujinye-sys
authored andcommitted
For Bazel builds, mark some of the low-level tests that are dependent
on timing as flaky. This will run them up to 3 times (in the default configuration) and only consider the test failed if it fails each time. PiperOrigin-RevId: 530348477 Change-Id: Ib77bd8a166828b82a1b49ee5ef2e8321752e51d0
1 parent 3ba3328 commit 0f2636e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

absl/synchronization/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ cc_test(
238238
size = "large",
239239
srcs = ["mutex_test.cc"],
240240
copts = ABSL_TEST_COPTS,
241+
flaky = 1,
241242
linkopts = ABSL_DEFAULT_LINKOPTS,
242243
shard_count = 25,
243244
deps = [
@@ -300,6 +301,7 @@ cc_test(
300301
size = "small",
301302
srcs = ["notification_test.cc"],
302303
copts = ABSL_TEST_COPTS,
304+
flaky = 1,
303305
linkopts = ABSL_DEFAULT_LINKOPTS,
304306
tags = ["no_test_lexan"],
305307
deps = [

0 commit comments

Comments
 (0)