File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
14
14
15
15
"cdr.dev/slog/sloggers/slogtest"
16
16
17
- "github.com/coder/coder/v2/coderd/database/dbmem "
17
+ "github.com/coder/coder/v2/coderd/database/dbtestutil "
18
18
"github.com/coder/coder/v2/coderd/updatecheck"
19
19
"github.com/coder/coder/v2/testutil"
20
20
)
@@ -49,7 +49,7 @@ func TestChecker_Notify(t *testing.T) {
49
49
}))
50
50
defer srv .Close ()
51
51
52
- db := dbmem . New ( )
52
+ db , _ := dbtestutil . NewDB ( t )
53
53
logger := slogtest .Make (t , & slogtest.Options {IgnoreErrors : true }).Named (t .Name ())
54
54
notify := make (chan updatecheck.Result , len (wantVersion ))
55
55
c := updatecheck .New (db , logger , updatecheck.Options {
@@ -130,7 +130,7 @@ func TestChecker_Latest(t *testing.T) {
130
130
}))
131
131
defer srv .Close ()
132
132
133
- db := dbmem . New ( )
133
+ db , _ := dbtestutil . NewDB ( t )
134
134
logger := slogtest .Make (t , & slogtest.Options {IgnoreErrors : true }).Named (t .Name ())
135
135
c := updatecheck .New (db , logger , updatecheck.Options {
136
136
URL : srv .URL ,
You can’t perform that action at this time.
0 commit comments