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
Next Next commit
fix: flaky: TestWorkspaceProxy_Server_PrometheusEnabled
  • Loading branch information
mtojek committed Mar 18, 2024
commit 1364cc8a43487d1cd5d99bb0c192b0043feaafce
3 changes: 2 additions & 1 deletion enterprise/cli/proxyserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ func TestWorkspaceProxy_Server_PrometheusEnabled(t *testing.T) {
_, _ = w.Write([]byte(`{"app_security_key": "012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789123456012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789123456"}`))
return
}
if r.URL.Path == "/api/v2/workspaceproxies/me/coordinate" {
if r.URL.Path == "/api/v2/workspaceproxies/me/coordinate" ||
r.URL.Path == "/api/v2/buildinfo" {
// Slow down proxy registration, so that test runner can check if Prometheus endpoint is exposed.
wg.Wait()

Expand Down