swap to RAM for test driver

main
Bel LaPointe 2024-04-12 13:02:06 -06:00
parent 04c7a5c9e1
commit 5817dce70e
1 changed files with 1 additions and 4 deletions

View File

@ -11,10 +11,7 @@ func TestQueue(t *testing.T) {
ctx, can := context.WithTimeout(context.Background(), time.Second*10)
defer can()
db := NewTestDBIn(t.TempDir())
defer db.Close()
q := NewQueue(db)
q := NewQueue(NewRAM())
for i := 0; i < 39; i++ {
if err := q.Push(ctx, Message{ID: strconv.Itoa(i), TS: uint64(i)}); err != nil {