Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2e7cd0f

Browse files
authored
chore(coderd/database/dbpurge): remove dbmem from tests (#18151)
Related to#15109
1 parent1d48131 commit2e7cd0f

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)

[8]ページ先頭

©2009-2025 Movatter.jp