Skip to content

Commit

Permalink
add delete logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hafizxd committed Feb 8, 2024
1 parent 564b988 commit 41b4fc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/sqlc/transfer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package db
import (
"context"
"database/sql"
"fmt"
"github.com/hafizxd/simple_bank/util"
"testing"
"time"
Expand Down Expand Up @@ -76,6 +77,7 @@ func TestDeleteTransfer(t *testing.T) {
require.NoError(t, err)

transfer2, err := testQueries.GetAccount(context.Background(), transfer1.ID)
fmt.Println(">> transfer2: ", transfer2)
require.Error(t, err)
require.EqualError(t, err, sql.ErrNoRows.Error())
require.Empty(t, transfer2)
Expand Down

0 comments on commit 41b4fc9

Please sign in to comment.