Skip to content

Commit

Permalink
[REVERT] debug code to troubleshoot error
Browse files Browse the repository at this point in the history
  • Loading branch information
cnoon committed Sep 14, 2018
1 parent 6460e49 commit 950586d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ script:

# Build Framework in Release and Run Tests if specified
- if [ $RUN_TESTS == "YES" ]; then
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test | bundle exec xcpretty -c;
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test;
else
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO build | bundle exec xcpretty -c;
fi
Expand Down
8 changes: 6 additions & 2 deletions Tests/Tests/Connection/ConnectionPoolTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,12 @@ class ConnectionPoolTestCase: BaseTestCase {
var count: Int?

// When
try pool.execute { connection in
count = try connection.query("SELECT count(*) FROM sqlite_master where type = 'table'")
do {
try pool.execute { connection in
count = try connection.query("SELECT count(*) FROM sqlite_master where type = 'table'")
}
} catch {
print("Error: \(error)")
}

// Then
Expand Down

0 comments on commit 950586d

Please sign in to comment.