mirror of
https://github.com/coder/coder.git
synced 2026-06-07 06:58:17 +00:00
fix: use static port number for prometheus test (#14000)
This commit is contained in:
@@ -301,11 +301,11 @@ func TestProvisionerDaemon_SessionToken(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
//nolint:paralleltest,tparallel // Prometheus endpoint tends to fail with `bind: address already in use`.
|
||||
//nolint:paralleltest,tparallel // Test uses a static port.
|
||||
func TestProvisionerDaemon_PrometheusEnabled(t *testing.T) {
|
||||
t.Skip("Flaky test - see https://github.com/coder/coder/issues/13931")
|
||||
|
||||
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
|
||||
|
||||
// Configure CLI client
|
||||
client, admin := coderdenttest.New(t, &coderdenttest.Options{
|
||||
|
||||
Reference in New Issue
Block a user