Skip to content

Commit 7f68191

Browse files
authored
chore(coderd/updatecheck): remove dbmem from tests (#18792)
Related to #15109.
1 parent e0fb15e commit 7f68191

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coderd/updatecheck/updatecheck_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
"cdr.dev/slog/sloggers/slogtest"
1616

17-
"github.com/coder/coder/v2/coderd/database/dbmem"
17+
"github.com/coder/coder/v2/coderd/database/dbtestutil"
1818
"github.com/coder/coder/v2/coderd/updatecheck"
1919
"github.com/coder/coder/v2/testutil"
2020
)
@@ -49,7 +49,7 @@ func TestChecker_Notify(t *testing.T) {
4949
}))
5050
defer srv.Close()
5151

52-
db := dbmem.New()
52+
db, _ := dbtestutil.NewDB(t)
5353
logger := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}).Named(t.Name())
5454
notify := make(chan updatecheck.Result, len(wantVersion))
5555
c := updatecheck.New(db, logger, updatecheck.Options{
@@ -130,7 +130,7 @@ func TestChecker_Latest(t *testing.T) {
130130
}))
131131
defer srv.Close()
132132

133-
db := dbmem.New()
133+
db, _ := dbtestutil.NewDB(t)
134134
logger := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}).Named(t.Name())
135135
c := updatecheck.New(db, logger, updatecheck.Options{
136136
URL: srv.URL,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy