diff --git a/core/ledger/util/couchdb/couchdbutil_test.go b/core/ledger/util/couchdb/couchdbutil_test.go index b823d61c521..4422f544e50 100644 --- a/core/ledger/util/couchdb/couchdbutil_test.go +++ b/core/ledger/util/couchdb/couchdbutil_test.go @@ -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)