From ac4be155d9a0d73146db17dc28beedbceec71edc Mon Sep 17 00:00:00 2001 From: Hugo Dutka Date: Tue, 8 Jul 2025 16:31:05 +0200 Subject: [PATCH] chore(coderd/runtimeconfig): remove dbmem from tests (#18790) Related to https://github.com/coder/coder/issues/15109. --- coderd/runtimeconfig/entry_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coderd/runtimeconfig/entry_test.go b/coderd/runtimeconfig/entry_test.go index 3092dae88c..f8e2a925e2 100644 --- a/coderd/runtimeconfig/entry_test.go +++ b/coderd/runtimeconfig/entry_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/coder/coder/v2/coderd/database/dbmem" + "github.com/coder/coder/v2/coderd/database/dbtestutil" "github.com/coder/coder/v2/coderd/runtimeconfig" "github.com/coder/coder/v2/testutil" "github.com/coder/serpent" @@ -32,7 +32,7 @@ func TestEntry(t *testing.T) { ctx := testutil.Context(t, testutil.WaitShort) mgr := runtimeconfig.NewManager() - db := dbmem.New() + db, _ := dbtestutil.NewDB(t) override := serpent.String("dogfood@dev.coder.com") @@ -54,7 +54,7 @@ func TestEntry(t *testing.T) { ctx := testutil.Context(t, testutil.WaitShort) mgr := runtimeconfig.NewManager() - db := dbmem.New() + db, _ := dbtestutil.NewDB(t) override := serpent.Struct[map[string]string]{ Value: map[string]string{