Skip to content

Commit 631c88a

Browse files
committed
Switch to BoltStore with error handling
1 parent b85643a commit 631c88a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adapter/test_util.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"log"
66
"net"
7+
"os"
78
"strconv"
89
"sync"
910
"sync/atomic"
@@ -259,7 +260,9 @@ func setupNodes(t *testing.T, ctx context.Context, n int, ports []portsAdress, c
259260
var lc net.ListenConfig
260261

261262
for i := 0; i < n; i++ {
262-
st := store.NewRbMemoryStore()
263+
264+
st, err := store.NewBoltStore(os.TempDir())
265+
require.NoError(t, err)
263266
trxSt := store.NewMemoryStoreDefaultTTL()
264267
fsm := kv.NewKvFSM(st, trxSt)
265268

0 commit comments

Comments
 (0)