                     connectionExp.fulfill()
                     let _ = try self.createNode(connection: conn)
                 }
-            } catch {
-                // poop
+            } catch(let error) {
+                XCTFail("Did not expect any errors, but got \(error)")
             }
         }
     

                    cypherExp.fulfill()
                    let _ = try self.pullResults(connection: conn)
                }
            } catch {
                // poop
            }
        }
        

import packstream_swift

@testable import bolt_swift

fileprivate let kUsername = "neo4j"
fileprivate let kPasscode = "<passcode>"

class bolt_swiftTests: XCTestCase {
    func testConnection() throws {
        let connectionExp = expectation(description: "Login successful")
        
        let settings = ConnectionSettings(username: kUsername, password: kPasscode)
        let conn = SwiftSocketConnection(hostname: "localhost", settings: settings)
        try conn.connect { (success) in
            do {
