-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e341f4
commit 01b0a8c
Showing
2 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,8 +71,8 @@ func TestShouldRunWithinTransactionForOpenDB(t *testing.T) { | |
t.Fatalf("expected 1 user to be in database, but got %d", count) | ||
} | ||
|
||
expectedDb1Log := `one: Open | ||
one: Exec INSERT INTO app_user(username, email) VALUES('txdb', '[email protected]') | ||
expectedDb1Log := `one: open | ||
one: exec INSERT INTO app_user(username, email) VALUES('txdb', '[email protected]') | ||
` | ||
|
||
if db1Log.String() != expectedDb1Log { | ||
|
@@ -91,7 +91,7 @@ one: Exec INSERT INTO app_user(username, email) VALUES('txdb', '[email protected]') | |
t.Errorf("expected 0 user to be in database, but got %d", count) | ||
} | ||
|
||
expectedDb2Log := `two: Open | ||
expectedDb2Log := `two: open | ||
` | ||
|
||
if db2Log.String() != expectedDb2Log { | ||
|
@@ -263,13 +263,13 @@ func TestSavepointRollbackSequentialForOpenDB(t *testing.T) { | |
t.Errorf("expected 1 user with username taro, but got %d", count) | ||
} | ||
|
||
expectedDbLog := `one: Open | ||
one: BeginTx | ||
one: Exec INSERT INTO app_user(username, email) VALUES ('taro', '[email protected]') | ||
one: Commit | ||
one: BeginTx | ||
one: Exec INSERT INTO app_user(username, email) VALUES ('taro', '[email protected]') | ||
one: Rollback | ||
expectedDbLog := `one: open | ||
one: begin | ||
one: exec INSERT INTO app_user(username, email) VALUES ('taro', '[email protected]') | ||
one: commit | ||
one: begin | ||
one: exec INSERT INTO app_user(username, email) VALUES ('taro', '[email protected]') | ||
one: rollback | ||
` | ||
|
||
if dbLog.String() != expectedDbLog { | ||
|