You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2020/02/06 21:59:56 UTC

[couchdb] 03/03: Speed up OOM error

This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch update-jiffy-1.0.3
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 9140e61ea51b59b7256e91401fc927a05f0f20ee
Author: Paul J. Davis <pa...@gmail.com>
AuthorDate: Thu Feb 6 10:21:13 2020 -0600

    Speed up OOM error
    
    This test was timing out just as the "out of memory" error is reported.
    Changing the accumulation from linear to exponential should hopefully
    prevent this from happening.
---
 src/couch/test/eunit/couch_js_tests.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch/test/eunit/couch_js_tests.erl b/src/couch/test/eunit/couch_js_tests.erl
index d3d92a2..6665476 100644
--- a/src/couch/test/eunit/couch_js_tests.erl
+++ b/src/couch/test/eunit/couch_js_tests.erl
@@ -17,7 +17,7 @@
 -define(FUNC, <<
   "function(doc) {\n"
   "  var val = \"0123456789ABCDEF\";\n"
-  "  while(true) {emit(val, val);}\n"
+  "  while(true) {val = val + val;}\n"
   "}\n"
 >>).