diff --git a/windows-agent/internal/proservices/landscape/landscape_test.go b/windows-agent/internal/proservices/landscape/landscape_test.go index 4a4b95784..8bcc2a4d2 100644 --- a/windows-agent/internal/proservices/landscape/landscape_test.go +++ b/windows-agent/internal/proservices/landscape/landscape_test.go @@ -263,6 +263,8 @@ func TestSendUpdatedInfo(t *testing.T) { mock := wslmock.New() mock.StateError = tc.stateErr ctx = wsl.WithMock(ctx, mock) + } else if tc.stateErr { + t.Skip("This test is skipped because it necessitates the GoWSL mock") } lis, server, mockService := setUpLandscapeMock(t, ctx, "localhost:", false)