chore(coderd/database/dbrollup): remove dbmem from tests (#18153)

Related to https://github.com/coder/coder/issues/15109
This commit is contained in:
Hugo Dutka
2025-06-02 13:56:50 +02:00
committed by GitHub
parent 33c87a2e03
commit 9812162190

View File

@ -15,7 +15,6 @@ import (
"github.com/coder/coder/v2/coderd/database"
"github.com/coder/coder/v2/coderd/database/dbgen"
"github.com/coder/coder/v2/coderd/database/dbmem"
"github.com/coder/coder/v2/coderd/database/dbrollup"
"github.com/coder/coder/v2/coderd/database/dbtestutil"
"github.com/coder/coder/v2/coderd/database/dbtime"
@ -28,7 +27,8 @@ func TestMain(m *testing.M) {
func TestRollup_Close(t *testing.T) {
t.Parallel()
rolluper := dbrollup.New(testutil.Logger(t), dbmem.New(), dbrollup.WithInterval(250*time.Millisecond))
db, _ := dbtestutil.NewDB(t)
rolluper := dbrollup.New(testutil.Logger(t), db, dbrollup.WithInterval(250*time.Millisecond))
err := rolluper.Close()
require.NoError(t, err)
}