Skip to content

Commit

Permalink
Disable flaky TestManager_FakeShipper test. (#2365)
Browse files Browse the repository at this point in the history
* Disable flaky shipper test.

This test has been flaky for a while and we haven't fixed it, so just
skip it until we get it fixed.

* Disable flaky TestManager_FakeInput_OutputChange
  • Loading branch information
cmacknz authored Mar 27, 2023
1 parent 0d54a64 commit bf7f9f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/component/runtime/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2091,6 +2091,7 @@ func TestManager_FakeShipper(t *testing.T) {
5. Send `send_event` action to the component fake input (GRPC client); returns once sent.
6. Wait for `record_event` action to return from the shipper input (GRPC server).
*/
t.Skip("Flaky test: https://github.com/elastic/elastic-agent/issues/2301")

testPaths(t)

Expand Down Expand Up @@ -2354,6 +2355,7 @@ LOOP:
}

func TestManager_FakeInput_OutputChange(t *testing.T) {
t.Skip("Flaky test: https://github.com/elastic/elastic-agent/issues/2403")
testPaths(t)

ctx, cancel := context.WithCancel(context.Background())
Expand Down Expand Up @@ -2508,7 +2510,7 @@ func TestManager_FakeInput_OutputChange(t *testing.T) {
}

updateTimeout := 300 * time.Millisecond
if runtime.GOOS == windows {
if runtime.GOOS == component.Windows {
// windows is slow, preventing flakyness
updateTimeout = 550 * time.Millisecond
}
Expand Down

0 comments on commit bf7f9f5

Please sign in to comment.