We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb3ab8e commit 8cd805fCopy full SHA for 8cd805f
Tests/FluentPostgresDriverTests/FluentPostgresTransactionControlTests.swift
@@ -24,10 +24,10 @@ final class FluentPostgresTransactionControlTests: XCTestCase {
24
}
25
}.wait()
26
XCTFail("Expected error but none was thrown")
27
- } catch let error as PSQLError where error.code == .server && error.serverInfo?[.sqlState] == "23505" {
+ } catch let error where String(reflecting: error).contains("sqlState: 23505") {
28
// ignore
29
} catch {
30
- XCTFail("Expected SQL state 23505 but got \(error)")
+ XCTFail("Expected SQL state 23505 but got \(String(reflecting: error))")
31
32
33
let count2 = try Todo.query(on: self.db).count().wait()
0 commit comments