Skip to content

Commit 16616ad

Browse files
author
Roman Golov
committed
Fix panic when database is nil.
1 parent 67c6fc5 commit 16616ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/table_tx_lazy_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ func TestTableTxLazy(t *testing.T) {
2828
require.NoError(t, err)
2929
})
3030

31+
require.NotNil(t, db)
32+
3133
t.Run("tx", func(t *testing.T) {
3234
t.Run("lazy", func(t *testing.T) {
3335
err := db.Table().Do(ctx,

0 commit comments

Comments
 (0)