Skip to content

Commit 2e7cd0f

Browse files
authored
chore(coderd/database/dbpurge): remove dbmem from tests (#18151)
Related to #15109
1 parent 1d48131 commit 2e7cd0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/database/dbpurge/dbpurge_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121

2222
"github.com/coder/coder/v2/coderd/database"
2323
"github.com/coder/coder/v2/coderd/database/dbgen"
24-
"github.com/coder/coder/v2/coderd/database/dbmem"
2524
"github.com/coder/coder/v2/coderd/database/dbpurge"
2625
"github.com/coder/coder/v2/coderd/database/dbrollup"
2726
"github.com/coder/coder/v2/coderd/database/dbtestutil"
@@ -47,7 +46,8 @@ func TestPurge(t *testing.T) {
4746
// We want to make sure dbpurge is actually started so that this test is meaningful.
4847
clk := quartz.NewMock(t)
4948
done := awaitDoTick(ctx, t, clk)
50-
purger := dbpurge.New(context.Background(), testutil.Logger(t), dbmem.New(), clk)
49+
db, _ := dbtestutil.NewDB(t)
50+
purger := dbpurge.New(context.Background(), testutil.Logger(t), db, clk)
5151
<-done // wait for doTick() to run.
5252
require.NoError(t, purger.Close())
5353
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy