Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Add Completion statement #87

Merged
merged 3 commits into from
Jan 3, 2019
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Tests/CouchDBTests/CouchDBTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class CouchDBTest: XCTestCase {

// The database name should be defined in an environment variable TESTDB_NAME
// in Travis, to allow each Travis build to use a separate database.
let dbName = ProcessInfo.processInfo.environment["TESTDB_NAME"] ?? "Error-TESTDB_NAME-not-set"
let dbName = ProcessInfo.processInfo.environment["TESTDB_NAME"] ?? "kitura_test_db"

let couchDBClient: CouchDBClient! = {
let credentials = Utils.readCredentials()
Expand Down Expand Up @@ -64,6 +64,8 @@ class CouchDBTest: XCTestCase {
} else {
if exists {
self.dropDatabase(completion)
} else {
completion()
}
}
}
Expand Down