Skip to content

Commit 84771fc

Browse files
malfetfacebook-github-bot
authored andcommitted
[caffe2] Add 10s deadline for all Caffe2 hypothesis fuzz tests
Test Plan: CI Reviewed By: walterddr Differential Revision: D24298118 fbshipit-source-id: 2286c1e37ed9c43f404b888386c0bd4b0b6a55c6
1 parent 62d37b9 commit 84771fc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

caffe2/python/hypothesis_test_util.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,25 @@ def floats(*args, **kwargs):
109109
max_examples=50,
110110
min_satisfying_examples=1,
111111
verbosity=hypothesis.Verbosity.verbose,
112-
deadline=1000))
112+
deadline=10000))
113113
hypothesis.settings.register_profile(
114114
"dev",
115115
settings(
116116
suppress_health_check=[hypothesis.HealthCheck.too_slow],
117117
database=None,
118118
max_examples=10,
119119
min_satisfying_examples=1,
120-
verbosity=hypothesis.Verbosity.verbose))
120+
verbosity=hypothesis.Verbosity.verbose,
121+
deadline=10000))
121122
hypothesis.settings.register_profile(
122123
"debug",
123124
settings(
124125
suppress_health_check=[hypothesis.HealthCheck.too_slow],
125126
database=None,
126127
max_examples=1000,
127128
min_satisfying_examples=1,
128-
verbosity=hypothesis.Verbosity.verbose))
129+
verbosity=hypothesis.Verbosity.verbose,
130+
deadline=50000))
129131

130132
hypothesis.settings.load_profile(
131133
'sandcastle' if is_sandcastle() else os.getenv('CAFFE2_HYPOTHESIS_PROFILE',

0 commit comments

Comments
 (0)