File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -301,11 +301,11 @@ func TestProvisionerDaemon_SessionToken(t *testing.T) {
301301 })
302302}
303303
304- //nolint:paralleltest,tparallel // Prometheus endpoint tends to fail with `bind: address already in use` .
304+ //nolint:paralleltest,tparallel // Test uses a static port .
305305func TestProvisionerDaemon_PrometheusEnabled (t * testing.T ) {
306- t . Skip ( "Flaky test - see https://github.com/coder/coder/issues/13931" )
307-
308- prometheusPort := testutil . RandomPortNoListen ( t )
306+ // Ephemeral ports have a tendency to conflict and fail with `bind: address already in use` error.
307+ // This workaround forces a static port for Prometheus that hopefully won't be used by other tests.
308+ prometheusPort := 32001
309309
310310 // Configure CLI client
311311 client , admin := coderdenttest .New (t , & coderdenttest.Options {
You can’t perform that action at this time.
0 commit comments