Skip to content

Commit 09d1c55

Browse files
committed
Fix error assertion
1 parent cf9351c commit 09d1c55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xenomint/state_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package xenomint
1818

1919
import (
20+
"database/sql"
2021
"fmt"
2122
"os"
2223
"path"
@@ -72,8 +73,7 @@ func TestState(t *testing.T) {
7273
So(err, ShouldNotBeNil)
7374
err = errors.Cause(err)
7475
So(err, ShouldNotBeNil)
75-
So(err.Error(), ShouldEqual,
76-
"sql: Transaction has already been committed or rolled back")
76+
So(err, ShouldEqual, sql.ErrTxDone)
7777
})
7878
})
7979
Convey("The state will report error on read with uncommitted schema change", func() {

0 commit comments

Comments
 (0)