iilyak commented on issue #1468: Port bulk_docs.js
URL: https://github.com/apache/couchdb/pull/1468#issuecomment-410059282
 
 
   I think "test bulk docs can detect conflicts" is flaky. Out of 20 executions 
it failed 4 times with following exception:
   ```
     1) test bulk docs can detect conflicts (BulkDocsTest)
        test/bulk_docs_test.exs:45
        Expected truthy, got false
        code: assert resp.status_code() == 201 and length(resp.body()) == 
length(docs)
        stacktrace:
          test/bulk_docs_test.exs:135: BulkDocsTest.bulk_post/2
          test/bulk_docs_test.exs:57: (test)
   ```
   
   I added a debug printout to print the response we get. It is the following:
   ```
   %HTTPotion.Response{
      body: [
          %{"accepted" => true, "id" => "1", "ok" => true, "rev" => 
"2-59422af42db146a6a87b76e5edbeeb44"}, 
          %{"id" => "2", "ok" => true, "rev" => 
"2-0450643c5eb507fee080a4298e102c9a"}, 
          %{"id" => "3", "ok" => true, "rev" => 
"2-7c9bd31172bbb3d4097fa45e3a6e2c85"}, 
          %{"id" => "4", "ok" => true, "rev" => 
"2-2fd866cc031a23ac8ccccb49952a2666"}, 
          %{"id" => "5", "ok" => true, "rev" => 
"2-3af34b0749ed8322340556d497581836"}
      ], 
      headers: %HTTPotion.Headers{
          hdrs: %{
              "cache-control" => "must-revalidate", 
              "content-length" => "338", 
              "content-type" => "application/json", 
              "date" => "Thu, 02 Aug 2018 20:27:43 GMT", 
              "server" => "CouchDB/2.1.1 (Erlang OTP/19)", 
              "x-couch-request-id" => "5bd040d9ec", 
              "x-couchdb-body-time" => "0"
          }
       }, 
       status_code: 202
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to