Skip to content

Commit 09439e6

Browse files
wbrezaCopilot
andcommitted
fix: register HookExecutors in service hooks validation test
The Test_ServiceHooks_ValidationUsesServicePath test from main was missing the registerHookExecutors call needed for IoC resolution of HookExecutor. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1137a69 commit 09439e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cli/azd/cmd/middleware/hooks_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ func Test_ServiceHooks_Registered(t *testing.T) {
304304

305305
func Test_ServiceHooks_ValidationUsesServicePath(t *testing.T) {
306306
mockContext := mocks.NewMockContext(context.Background())
307+
registerHookExecutors(mockContext)
307308
azdContext := createAzdContext(t)
308309

309310
envName := "test"

0 commit comments

Comments
 (0)