We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent33c87a2 commit9812162Copy full SHA for 9812162
coderd/database/dbrollup/dbrollup_test.go
@@ -15,7 +15,6 @@ import (
15
16
"github.com/coder/coder/v2/coderd/database"
17
"github.com/coder/coder/v2/coderd/database/dbgen"
18
-"github.com/coder/coder/v2/coderd/database/dbmem"
19
"github.com/coder/coder/v2/coderd/database/dbrollup"
20
"github.com/coder/coder/v2/coderd/database/dbtestutil"
21
"github.com/coder/coder/v2/coderd/database/dbtime"
@@ -28,7 +27,8 @@ func TestMain(m *testing.M) {
28
27
29
funcTestRollup_Close(t*testing.T) {
30
t.Parallel()
31
-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))
32
err:=rolluper.Close()
33
require.NoError(t,err)
34
}