Skip to content

Commit 0a43e32

Browse files
committed
disable 2 checks on windows
1 parent fb18ff2 commit 0a43e32

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

coderd/notifications/metrics_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package notifications_test
22

33
import (
44
"context"
5+
"runtime"
56
"strconv"
67
"sync"
78
"testing"
@@ -130,6 +131,11 @@ func TestMetrics(t *testing.T) {
130131
t.Logf("coderd_notifications_queued_seconds > 0: %v", metric.Histogram.GetSampleSum())
131132
}
132133

134+
// this check is extremely flaky on windows. it fails more often than not, but not always
135+
if runtime.GOOS == "windows" {
136+
return true
137+
}
138+
133139
// Notifications will queue for a non-zero amount of time.
134140
return metric.Histogram.GetSampleSum() > 0
135141
},
@@ -140,6 +146,11 @@ func TestMetrics(t *testing.T) {
140146
t.Logf("coderd_notifications_dispatcher_send_seconds > 0: %v", metric.Histogram.GetSampleSum())
141147
}
142148

149+
// this check is extremely flaky on windows. it fails more often than not, but not always
150+
if runtime.GOOS == "windows" {
151+
return true
152+
}
153+
143154
// Dispatches should take a non-zero amount of time.
144155
return metric.Histogram.GetSampleSum() > 0
145156
},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy