Skip to content

Commit 6fad4c3

Browse files
committed
first commit: hugodutka/dbmem-coderd/database/dbrollup
1 parent 854ef5b commit 6fad4c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/database/dbrollup/dbrollup_test.go

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

1616
"github.com/coder/coder/v2/coderd/database"
1717
"github.com/coder/coder/v2/coderd/database/dbgen"
18-
"github.com/coder/coder/v2/coderd/database/dbmem"
1918
"github.com/coder/coder/v2/coderd/database/dbrollup"
2019
"github.com/coder/coder/v2/coderd/database/dbtestutil"
2120
"github.com/coder/coder/v2/coderd/database/dbtime"
@@ -28,7 +27,8 @@ func TestMain(m *testing.M) {
2827

2928
func TestRollup_Close(t *testing.T) {
3029
t.Parallel()
31-
rolluper := dbrollup.New(testutil.Logger(t), dbmem.New(), dbrollup.WithInterval(250*time.Millisecond))
30+
db, _ := dbtestutil.NewDB(t)
31+
rolluper := dbrollup.New(testutil.Logger(t), db, dbrollup.WithInterval(250*time.Millisecond))
3232
err := rolluper.Close()
3333
require.NoError(t, err)
3434
}

0 commit comments

Comments
 (0)