diff options
Diffstat (limited to 'src/third_party/wiredtiger/test/format/format.i')
| -rw-r--r-- | src/third_party/wiredtiger/test/format/format.i | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/third_party/wiredtiger/test/format/format.i b/src/third_party/wiredtiger/test/format/format.i index 75cde988b0d..d2bcab9bf9d 100644 --- a/src/third_party/wiredtiger/test/format/format.i +++ b/src/third_party/wiredtiger/test/format/format.i @@ -26,6 +26,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#define FORMAT_PREPARE_TIMEOUT 120 + /* * read_op -- * Perform a read operation, waiting out prepare conflicts. @@ -48,7 +50,7 @@ read_op(WT_CURSOR *cursor, read_operation op, int *exactp) /* Ignore clock reset. */ __wt_seconds(NULL, &now); - testutil_assertfmt(now < start || now - start < 60, + testutil_assertfmt(now < start || now - start < FORMAT_PREPARE_TIMEOUT, "%s: timed out with prepare-conflict", "WT_CURSOR.next"); } break; @@ -58,7 +60,7 @@ read_op(WT_CURSOR *cursor, read_operation op, int *exactp) /* Ignore clock reset. */ __wt_seconds(NULL, &now); - testutil_assertfmt(now < start || now - start < 60, + testutil_assertfmt(now < start || now - start < FORMAT_PREPARE_TIMEOUT, "%s: timed out with prepare-conflict", "WT_CURSOR.prev"); } break; @@ -68,7 +70,7 @@ read_op(WT_CURSOR *cursor, read_operation op, int *exactp) /* Ignore clock reset. */ __wt_seconds(NULL, &now); - testutil_assertfmt(now < start || now - start < 60, + testutil_assertfmt(now < start || now - start < FORMAT_PREPARE_TIMEOUT, "%s: timed out with prepare-conflict", "WT_CURSOR.search"); } break; @@ -78,7 +80,7 @@ read_op(WT_CURSOR *cursor, read_operation op, int *exactp) /* Ignore clock reset. */ __wt_seconds(NULL, &now); - testutil_assertfmt(now < start || now - start < 60, + testutil_assertfmt(now < start || now - start < FORMAT_PREPARE_TIMEOUT, "%s: timed out with prepare-conflict", "WT_CURSOR.search_near"); } break; |
