Skip to content

Commit

Permalink
close db after initial sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhadfield committed Apr 11, 2021
1 parent c6a692d commit 9b69eef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func TestMain(m *testing.M) {

_, err = Sync(SyncInput{
Session: testSession,
Close: true,
Debug: true,
})
if err != nil {
Expand Down Expand Up @@ -120,7 +121,7 @@ func TestSyncWithNoItems(t *testing.T) {
defer cleanup(testSession.Session)

defer removeDB(tempDBPath)

so, err := Sync(SyncInput{
Session: testSession,
})
Expand Down

0 comments on commit 9b69eef

Please sign in to comment.