Skip to content

Commit

Permalink
[-] fix linter warning "SA4006: this value of tx is never used"
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Sep 8, 2023
1 parent 29538bc commit d18c4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgxmock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func TestTransactionExpectations(t *testing.T) {
mock.ExpectBeginTx(pgx.TxOptions{AccessMode: pgx.ReadOnly})
mock.ExpectCommit()

tx, err = mock.BeginTx(ctx, pgx.TxOptions{})
_, err = mock.BeginTx(ctx, pgx.TxOptions{})
a.Error(err, "wrong tx access mode should raise error")

tx, err = mock.BeginTx(ctx, pgx.TxOptions{AccessMode: pgx.ReadOnly})
Expand Down

0 comments on commit d18c4e5

Please sign in to comment.