From b07cc21cf4a56a94cc32c3a34fbe321ad36a1587 Mon Sep 17 00:00:00 2001 From: Agnes Lin Date: Thu, 6 Aug 2020 15:55:59 -0400 Subject: [PATCH] fix: fix transcation tests failed randomly --- test/transaction.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/transaction.test.js b/test/transaction.test.js index 8395951..4b97996 100644 --- a/test/transaction.test.js +++ b/test/transaction.test.js @@ -133,7 +133,7 @@ describe('transactions', function() { describe('rollback', function() { var post = {title: 't2', content: 'c2'}; - before(createPostInTx(post)); + before(createPostInTx(post, 2000)); it('should not see the uncommitted insert', expectToFindPosts(post, 0)); @@ -159,7 +159,7 @@ describe('transactions', function() { describe('timeout', function() { var post = {title: 't3', content: 'c3'}; - before(createPostInTx(post, 500)); + before(createPostInTx(post, 2000)); it('should invoke the timeout hook', function(done) { currentTx.observe('timeout', function(context, next) {