Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input operator stop must not crash even if start was not called #36262

Merged
Prev Previous commit
Next Next commit
Remove test that became redundant with previous change
  • Loading branch information
pjanotti committed Nov 7, 2024
commit 2739de01f4f6210d291088415d16cf35f6105a27
7 changes: 0 additions & 7 deletions pkg/stanza/operator/input/windows/input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ func TestInputCreate_Stop(t *testing.T) {
assert.NoError(t, input.Stop())
}

// TestInputCreate_PartialStart_Stop ensures the input correctly shuts down even if it was minimally started.
func TestInputCreate_PartialStart_Stop(t *testing.T) {
input := newTestInput()
input.cancel = func() {}
assert.NoError(t, input.Stop())
}

// TestInputStart_LocalSubscriptionError ensures the input correctly handles local subscription errors.
func TestInputStart_LocalSubscriptionError(t *testing.T) {
persister := testutil.NewMockPersister("")
Expand Down
Loading