Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9069a48

Browse files
committed
Refactor
Signed-off-by: Danny Kopping <[email protected]>
1 parent f0ca466 commit 9069a48

File tree

2 files changed

+1
-35
lines changed

2 files changed

+1
-35
lines changed

coderd/notifications/dispatch/webhook_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"cdr.dev/slog"
1919
"cdr.dev/slog/sloggers/slogtest"
2020

21-
"github.com/coder/coder/v2/coderd"
2221
"github.com/coder/coder/v2/coderd/coderdtest"
2322
"github.com/coder/coder/v2/coderd/database/dbmem"
2423
"github.com/coder/coder/v2/coderd/notifications/dispatch"
@@ -191,7 +190,7 @@ func TestRuntimeEndpointChange(t *testing.T) {
191190
})
192191

193192
// Setup runtime config manager.
194-
mgr := coderd.NewRuntimeConfigStore(dbmem.New())
193+
mgr := runtimeconfig.NewStoreManager(dbmem.New())
195194

196195
// Dispatch a notification and it will fail.
197196
handler := dispatch.NewWebhookHandler(vals.Notifications.Webhook, logger.With(slog.F("test", t.Name())))

coderd/runtimeconfig.go

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)