Skip to content

Commit

Permalink
test initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkasun committed Apr 10, 2024
1 parent 2f16c3b commit 00a7898
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit 00a7898

Please sign in to comment.