diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-02-05 14:05:01 -0600 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-02-07 09:36:57 -0600 |
commit | 981ee9105e23ce3aaa98d81674986175b22d819c (patch) | |
tree | 9a912244224a560f114975ba273861b7b5a0bc64 | |
parent | f1ed7e515f0ce5263ed5f746ccb2ca5ed83be176 (diff) | |
download | couchdb-981ee9105e23ce3aaa98d81674986175b22d819c.tar.gz |
Fix test failure in view_errors.js
-rw-r--r-- | test/javascript/tests/view_errors.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/javascript/tests/view_errors.js b/test/javascript/tests/view_errors.js index 7aad40c9a..6b9c75466 100644 --- a/test/javascript/tests/view_errors.js +++ b/test/javascript/tests/view_errors.js @@ -154,8 +154,13 @@ couchTests.view_errors = function(debug) { db.view("infinite/infinite_loop"); T(0 == 1); } catch(e) { - console.log("infinite sorrow: " + e.error); - T(e.error == "os_process_error"); + // This test has two different races. The first is whether + // the while loop exhausts the JavaScript RAM limits before + // timing. The second is a race between which of two timeouts + // fires first. The first timeout is the couch_os_process + // waiting for data back from couchjs. The second is the + // gen_server call to couch_os_process. + T(e.error == "os_process_error" || e.error == "timeout"); } // Check error responses for invalid multi-get bodies. |