Kitura / Kitura-CouchDB

CouchDB adapter for Kitura
Apache License 2.0
51 stars 29 forks source link

Update test suite to support asynchronous execution[WIP] #76

Closed saiHemak closed 6 years ago

saiHemak commented 6 years ago

Updated test suite to support asynchronous execution

Description

Updated the test suite to perform the check, drop, create databases in sequential manner.

Motivation and Context

Encountered test failures due to asynchronous execution of the above said operations while testing with Kitura-NIO API.The reason being the difference in the time taken by HTTP.request is causing the test case to check for database existence even before creation

How Has This Been Tested?

Ran Kitura-CouchDB test suite

Checklist:

saiHemak commented 6 years ago

@djones as discussed, I have raised this WIP PR for getting the tests executed in Travis-CI environment.Also I have done the changes as per our discussion.Please review ..

I agree that patch looks annoying due to the indentation changes . Inclusion of setUpDatabase call at the start of the method has caused the rest of the lines to displace.