Skip to content

Commit

Permalink
Test: Add Completion statement (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Lees11 authored Jan 3, 2019
1 parent 2b3b78e commit cc8ef60
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
32 changes: 16 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ matrix:
dist: trusty
sudo: required
env: TESTDB_NAME=testdb_1404_3
- os: linux
dist: trusty
sudo: required
env: KITURA_NIO=1 TESTDB_NAME=testdb_1404_4
- os: linux
dist: trusty
sudo: required
env: DOCKER_IMAGE=ubuntu:16.04 KITURA_NIO=1 TESTDB_NAME=testdb_1604_1
- os: linux
dist: trusty
sudo: required
env: DOCKER_IMAGE=ubuntu:18.04 KITURA_NIO=1 TESTDB_NAME=testdb_1804_1
# - os: linux
# dist: trusty
# sudo: required
# env: KITURA_NIO=1 TESTDB_NAME=testdb_1404_4
# - os: linux
# dist: trusty
# sudo: required
# env: DOCKER_IMAGE=ubuntu:16.04 KITURA_NIO=1 TESTDB_NAME=testdb_1604_1
# - os: linux
# dist: trusty
# sudo: required
# env: DOCKER_IMAGE=ubuntu:18.04 KITURA_NIO=1 TESTDB_NAME=testdb_1804_1
- os: osx
osx_image: xcode9.2
sudo: required
Expand All @@ -47,10 +47,10 @@ matrix:
osx_image: xcode10
sudo: required
env: SWIFT_SNAPSHOT=4.2 TESTDB_NAME=testdb_xcode10_1
- os: osx
osx_image: xcode10
sudo: required
env: SWIFT_SNAPSHOT=4.2 KITURA_NIO=1 TESTDB_NAME=testdb_xcode10_2
# - os: osx
# osx_image: xcode10
# sudo: required
# env: SWIFT_SNAPSHOT=4.2 KITURA_NIO=1 TESTDB_NAME=testdb_xcode10_2

before_install:
- git clone https://github.com/IBM-Swift/Package-Builder.git
Expand Down
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

0 comments on commit cc8ef60

Please sign in to comment.