Skip to content

Commit 5d33068

Browse files
committed
more lenient timeout tests
1 parent a64b8bb commit 5d33068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TestSuite.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ test_error (const char *format, ...) BSON_GNUC_PRINTF (1, 2);
193193
/* evaluate once */ \
194194
int64_t _a = (a); \
195195
int64_t _b = (b); \
196-
if (!(_a > (_b * 4) / 5 && (_a < (_b * 6) / 5))) { \
196+
if (!(_a > (_b * 2) / 3 && (_a < (_b * 3) / 2))) { \
197197
fprintf (stderr, \
198198
"FAIL\n\nAssert Failure: %" PRId64 \
199-
" not within 20%% of %" PRId64 "\n" \
199+
" not within 50%% of %" PRId64 "\n" \
200200
"%s:%d %s()\n", \
201201
_a, \
202202
_b, \

0 commit comments

Comments
 (0)