We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentdac14fe commitb3a3671Copy full SHA for b3a3671
enterprise/cli/provisionerdaemons_test.go
@@ -301,11 +301,11 @@ func TestProvisionerDaemon_SessionToken(t *testing.T) {
301
})
302
}
303
304
-//nolint:paralleltest,tparallel //Prometheus endpoint tends to fail with `bind: address already in use`.
+//nolint:paralleltest,tparallel //Test uses a static port.
305
funcTestProvisionerDaemon_PrometheusEnabled(t*testing.T) {
306
-t.Skip("Flaky test - see https://github.com/coder/coder/issues/13931")
307
-
308
-prometheusPort:=testutil.RandomPortNoListen(t)
+// Ephemeral ports have a tendency to conflict and fail with `bind: address already in use` error.
+// This workaround forces a static port for Prometheus that hopefully won't be used by other tests.
+prometheusPort:=32001
309
310
// Configure CLI client
311
client,admin:=coderdenttest.New(t,&coderdenttest.Options{