Skip to content

Commit

Permalink
[FAB-3328] fix couchdb unit test failures
Browse files Browse the repository at this point in the history
A stale changeset got merged:
https://gerrit.hyperledger.org/r/#/c/7975/
containing code that was incompatible with more recent merges.

This changeset fixes it.

Change-Id: I5de7054c6967d8b3cc791e5916c1d0cf8ffb9cde
Signed-off-by: denyeart <enyeart@us.ibm.com>
  • Loading branch information
denyeart committed Apr 21, 2017
1 parent be28757 commit 8c0a703
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/ledger/util/couchdb/couchdbutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ func TestCreateCouchDBSystemDBs(t *testing.T) {
defer cleanup(database)

//create a new connection
couchInstance, err := CreateCouchInstance(connectURL, "", "", maxRetries,
maxRetriesOnStartup, requestTimeout)
couchInstance, err := CreateCouchInstance(couchDBDef.URL, couchDBDef.Username, couchDBDef.Password,
couchDBDef.MaxRetries, couchDBDef.MaxRetriesOnStartup, couchDBDef.RequestTimeout)

testutil.AssertNoError(t, err, fmt.Sprintf("Error when trying to CreateCouchInstance"))

err = CreateSystemDatabasesIfNotExist(*couchInstance)
Expand Down

0 comments on commit 8c0a703

Please sign in to comment.