Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Aug 27, 2024
1 parent af63203 commit a326690
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/dbutil/dbutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func testIsNotExistError(t *testing.T, dbEngine string, isNotExist func(error) b
if isNotExist(err) {
t.Fatalf("Classified other error as not exist, err: %v", err)
}
if isNotExist(nil) {
t.Fatal("Classified nil as not exist")
}
}

func TestIsNotExistError(t *testing.T) {
Expand Down

0 comments on commit a326690

Please sign in to comment.