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 parente0fb15e commit7f68191Copy full SHA for 7f68191
coderd/updatecheck/updatecheck_test.go
@@ -14,7 +14,7 @@ import (
14
15
"cdr.dev/slog/sloggers/slogtest"
16
17
-"github.com/coder/coder/v2/coderd/database/dbmem"
+"github.com/coder/coder/v2/coderd/database/dbtestutil"
18
"github.com/coder/coder/v2/coderd/updatecheck"
19
"github.com/coder/coder/v2/testutil"
20
)
@@ -49,7 +49,7 @@ func TestChecker_Notify(t *testing.T) {
49
}))
50
defersrv.Close()
51
52
-db:=dbmem.New()
+db,_:=dbtestutil.NewDB(t)
53
logger:=slogtest.Make(t,&slogtest.Options{IgnoreErrors:true}).Named(t.Name())
54
notify:=make(chan updatecheck.Result,len(wantVersion))
55
c:=updatecheck.New(db,logger, updatecheck.Options{
@@ -130,7 +130,7 @@ func TestChecker_Latest(t *testing.T) {
130
131
132
133
134
135
136
URL:srv.URL,