Skip to content

Commit 7664c0c

Browse files
authored
Merge pull request #1296 from ydb-platform/fix_panic
Fix panic when database is nil.
2 parents 67c6fc5 + d264377 commit 7664c0c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tests/integration/sugar_unmarhall_result_set_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func TestSugarUnmarshallResultSet(t *testing.T) {
6565
SELECT 43 as id, "myStr43" as myStr, 123 as unexpected_column
6666
ORDER BY id
6767
`)
68+
require.NoError(t, err)
6869

6970
many, err := sugar.UnmarshallResultSet[myStruct](rows)
7071
require.ErrorIs(t, err, scanner.ErrFieldsNotFoundInStruct)

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)