Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Sep 15, 2023
1 parent 09e12a7 commit 0b0d2ea
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions badger/badger_test.go
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
package badger

import (
"os"
"testing"
"time"

"github.com/stretchr/testify/require"
)

var testStore *Storage

func TestMain(m *testing.M) {
testStore = New(Config{
Reset: true,
})

code := m.Run()

_ = testStore.Close()
os.Exit(code)
}
var testStore = New(Config{
Reset: true,
})

func Test_Badger_Set(t *testing.T) {
var (
Expand Down

0 comments on commit 0b0d2ea

Please sign in to comment.