Skip to content

Commit e63a0c3

Browse files
committed
fix test
1 parent a9775d4 commit e63a0c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlite3_opt_userauth_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func init() {
5353
}
5454

5555
// Dummy query to force connection and database creation
56-
// Will return ErrUnauthorized (SQLITE_AUTH) if user authentication fails
56+
// Will return errUserAuthNoLongerSupported if user authentication fails
5757
if _, err = db.Exec("SELECT 1;"); err != nil {
5858
defer os.Remove(file)
5959
defer db.Close()
@@ -70,7 +70,7 @@ func TestUserAuth(t *testing.T) {
7070
if err == nil {
7171
t.Fatalf("UserAuth not enabled: %s", err)
7272
}
73-
if !errors.Is(err, ErrUnauthorized) {
73+
if !errors.Is(err, errUserAuthNoLongerSupported) {
7474
t.Fatal(err)
7575
}
7676
}

0 commit comments

Comments
 (0)