mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: Rename databasefake --> dbfake (#6011)
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
|
||||
"cdr.dev/slog/sloggers/slogtest"
|
||||
|
||||
"github.com/coder/coder/coderd/database/databasefake"
|
||||
"github.com/coder/coder/coderd/database/dbfake"
|
||||
"github.com/coder/coder/coderd/updatecheck"
|
||||
"github.com/coder/coder/testutil"
|
||||
)
|
||||
@@ -49,7 +49,7 @@ func TestChecker_Notify(t *testing.T) {
|
||||
}))
|
||||
defer srv.Close()
|
||||
|
||||
db := databasefake.New()
|
||||
db := dbfake.New()
|
||||
logger := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}).Named(t.Name())
|
||||
notify := make(chan updatecheck.Result, len(wantVersion))
|
||||
c := updatecheck.New(db, logger, updatecheck.Options{
|
||||
@@ -131,7 +131,7 @@ func TestChecker_Latest(t *testing.T) {
|
||||
}))
|
||||
defer srv.Close()
|
||||
|
||||
db := databasefake.New()
|
||||
db := dbfake.New()
|
||||
logger := slogtest.Make(t, &slogtest.Options{IgnoreErrors: true}).Named(t.Name())
|
||||
c := updatecheck.New(db, logger, updatecheck.Options{
|
||||
URL: srv.URL,
|
||||
|
||||
Reference in New Issue
Block a user