From 00a789833d59227c9df22e331026fd0955ddf220 Mon Sep 17 00:00:00 2001 From: Matthew R Kasun Date: Wed, 10 Apr 2024 09:33:04 -0400 Subject: [PATCH] test initialization --- database_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/database_test.go b/database_test.go index 89059b9..9b1a945 100644 --- a/database_test.go +++ b/database_test.go @@ -23,7 +23,6 @@ type Other struct { func TestInitialize(t *testing.T) { t.Log(tables) - //tables := []string{"users", "keys", "networks"} t.Run("valid", func(t *testing.T) { err := testInit() assert.Nil(t, err) @@ -266,7 +265,7 @@ func deleteTestEntries() error { func testInit() error { if err := os.Remove("./test.db"); err != nil { - if err != os.ErrNotExist { + if !errors.Is(err, os.ErrNotExist) { return err } }