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

[v15] Fix flaky integrations tests #47217

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions integrations/event-handler/teleport_events_watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func TestEvents(t *testing.T) {
return
}
case err := <-chErr:
t.Fatalf("Received unexpected error from error channel: %v", err)
require.NoError(t, err)
return
case <-time.After(2 * time.Second):
t.Fatalf("No events received within deadline")
Expand Down Expand Up @@ -313,7 +313,7 @@ func TestUpdatePage(t *testing.T) {
return
}
case err := <-chErr:
t.Fatalf("Received unexpected error from error channel: %v", err)
require.NoError(t, err)
return
case <-time.After(2 * time.Second):
t.Fatalf("No events received within deadline")
Expand All @@ -340,7 +340,7 @@ func TestUpdatePage(t *testing.T) {
return
}
case err := <-chErr:
t.Fatalf("Received unexpected error from error channel: %v", err)
require.NoError(t, err)
return
case <-time.After(2 * time.Second):
t.Fatalf("No events received within deadline")
Expand All @@ -367,7 +367,7 @@ func TestUpdatePage(t *testing.T) {
return
}
case err := <-chErr:
t.Fatalf("Received unexpected error from error channel: %v", err)
require.NoError(t, err)
return
case <-time.After(2 * time.Second):
t.Fatalf("No events received within deadline")
Expand Down Expand Up @@ -591,7 +591,7 @@ func TestEventsWithWindowSkip(t *testing.T) {
return
}
case err := <-chErr:
t.Fatalf("Received unexpected error from error channel: %v", err)
require.NoError(t, err)
return
case <-time.After(2 * time.Second):
t.Fatalf("No events received within deadline")
Expand All @@ -607,7 +607,7 @@ func TestEventsWithWindowSkip(t *testing.T) {
return
}
case err := <-chErr:
t.Fatalf("Received unexpected error from error channel: %v", err)
require.NoError(t, err)
return
case <-time.After(2 * time.Second):
t.Fatalf("No events received within deadline")
Expand Down
Loading