Skip to content

Commit

Permalink
fix failed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Dec 20, 2024
1 parent 1356fc3 commit de6a193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestDBSError(t *testing.T) {
fmt.Println("Wrapped error:", err3.Error())

err4 := dbs.Error(nil, dbs.GenericErrorCode, "nil wrapper", "TestDBSError")
if !strings.Contains(err4.Error(), "Error: nil") {
if !strings.Contains(err4.Error(), "nil wrapper") {
t.Error("error does not contain nil error")
}
fmt.Println("Wrapped error:", err4.Error())
Expand Down

0 comments on commit de6a193

Please sign in to comment.