Skip to content

Test suite delayed_commits.js unreliable. #1704

@eiri

Description

@eiri

It became quite often that JS tests fail on Travis with the following

test/javascript/tests/delayed_commits.js                       
    Error: Failed to execute HTTP request: Failed to connect to 127.0.0.1 port 15984: Connection refused
Trace back (most recent call first):
    
  37: test/javascript/couch_http.js
      ("\"false\"\n")
 468: 127.0.0.1/_config/couchdb/delayed_commits",[object Object])@test/javascript/couch.js
      ("PUT","/_node/node1
 408: test/javascript/couch_test_runner.js
      run_on_modified_server([object Array],(function () {sleep(15000);T(db.
  29: test/javascript/tests/delayed_commits.js
      ()
  37: test/javascript/cli_runner.js
      runTest()
  48: test/javascript/cli_runner.js
      
fail

Expected Behavior

JS tests should pass.

Current Behavior

JS tests fail often locally in delayed_commits suite.

Possible Solution

It's either some changes introduced with new purge functionality or some tweaking happened around JS suite itself. A bit of digging what exactly delayed_commits is testing and how that part of functionality was affected in the latest changes is required.

Steps to Reproduce (for bugs)

Run make javascript until the failure. Note that isolated run make javascript suites=delayed_commits most of the time finishes fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions