Skip to content

Commit

Permalink
Add code coverage and Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mramshaw committed Mar 9, 2019
1 parent 808e86e commit b846365
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ func TestSearch(t *testing.T) {
response = executeRequest(req)
checkResponseCode(t, http.StatusCreated, response)

// Sleep for 4 seconds to allow Couchbase time to commit
time.Sleep(4 * time.Second)
// Sleep for 5 seconds to allow Couchbase time to commit
time.Sleep(5 * time.Second)

var bb bytes.Buffer
mw := multipart.NewWriter(&bb)
Expand Down Expand Up @@ -348,8 +348,8 @@ func TestSearch(t *testing.T) {

addRecipes(2, 12)

// Sleep for 4 seconds to allow Couchbase time to commit
time.Sleep(4 * time.Second)
// Sleep for 5 seconds to allow Couchbase time to commit
time.Sleep(5 * time.Second)

mw = multipart.NewWriter(&bb)
mw.WriteField("count", "10")
Expand Down

0 comments on commit b846365

Please sign in to comment.