Skip to content

Commit

Permalink
fix test for Python2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed May 24, 2024
1 parent cc930f2 commit f58b93b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func TestIssue89(t *testing.T) {

conn2.QueryRow("select count(*) from mon$transactions where mon$attachment_id <> current_connection").Scan(&numberTrans)

if numberTrans != 1 {
if numberTrans > 1 {
t.Fatalf("Transaction open without query runned")
}

Expand Down Expand Up @@ -332,7 +332,7 @@ func TestIssue89(t *testing.T) {
conn2, _ = sql.Open("firebirdsql", test_dsn)
conn2.QueryRow("select count(*) from mon$transactions where mon$attachment_id <> current_connection").Scan(&numberTrans)

if numberTrans != 1 {
if numberTrans > 1 {
t.Fatalf("Autocommit don't work")
}

Expand Down Expand Up @@ -362,7 +362,7 @@ func TestIssue89(t *testing.T) {
conn2, _ = sql.Open("firebirdsql", test_dsn)
conn2.QueryRow("select count(*) from mon$transactions where mon$attachment_id <> current_connection").Scan(&numberTrans)

if numberTrans != 1 {
if numberTrans > 1 {
t.Fatalf("Autocommit in prepare don't work")
}

Expand Down

0 comments on commit f58b93b

Please sign in to comment.