Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
make the snapshot check more robust
  • Loading branch information
hugodutka committed Jan 30, 2025
commit 89c8371f4d760ff0ea9e397cc1a0b0e0a247138c
6 changes: 3 additions & 3 deletions cli/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -987,16 +987,16 @@ func TestServer(t *testing.T) {
require.NoError(t, err)
require.NoError(t, body.Body.Close())

snap := <-snapshot
require.Condition(t, func() bool {
require.Eventually(t, func() bool {
snap := <-snapshot
htmlFirstServedFound := false
for _, item := range snap.TelemetryItems {
if item.Key == string(telemetry.TelemetryItemKeyHTMLFirstServedAt) {
htmlFirstServedFound = true
}
}
return htmlFirstServedFound
}, "no html_first_served telemetry item")
}, testutil.WaitMedium, testutil.IntervalFast, "no html_first_served telemetry item")
})
t.Run("Prometheus", func(t *testing.T) {
t.Parallel()
Expand Down
Loading