Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f1806c

Browse files
committed
fix sql tx references
1 parent 1781c7c commit 3f1806c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/wsbuilder/wsbuilder_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ func expectDB(t *testing.T, opts ...txExpect) *dbmock.MockStore {
737737
mDB.EXPECT().InTx(
738738
gomock.Any(), gomock.Eq(&database.TxOptions{Isolation: sql.LevelRepeatableRead}),
739739
).
740-
DoAndReturn(func(f func(database.Store) error, _ *sql.TxOptions) error {
740+
DoAndReturn(func(f func(database.Store) error, _ *database.TxOptions) error {
741741
err := f(mTx)
742742
return err
743743
})
@@ -763,7 +763,7 @@ func withTemplate(mTx *dbmock.MockStore) {
763763
// withInTx runs the given functions on the same db mock.
764764
func withInTx(mTx *dbmock.MockStore) {
765765
mTx.EXPECT().InTx(gomock.Any(), gomock.Any()).Times(1).DoAndReturn(
766-
func(f func(store database.Store) error, _ *sql.TxOptions) error {
766+
func(f func(store database.Store) error, _ *database.TxOptions) error {
767767
return f(mTx)
768768
},
769769
)

0 commit comments

Comments
 (0)