Skip to content

Commit

Permalink
Properly shutdown testing dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Jun 22, 2019
1 parent 3d78fc0 commit 000981c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dkron/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
)

func TestStore(t *testing.T) {
s, err := NewStore(nil, "test.db")
s, err := NewStore(nil, "test1.data")
defer s.Shutdown()
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -76,7 +77,8 @@ func TestStore(t *testing.T) {
}

func TestStore_GetLastExecutionGroup(t *testing.T) {
s, err := NewStore(nil, "test.db")
s, err := NewStore(nil, "test2.data")
defer s.Shutdown()
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 000981c

Please sign in to comment.