Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0a43e32

Browse files
committed
disable 2 checks on windows
1 parentfb18ff2 commit0a43e32

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+
ifruntime.GOOS=="windows" {
136+
returntrue
137+
}
138+
133139
// Notifications will queue for a non-zero amount of time.
134140
returnmetric.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+
ifruntime.GOOS=="windows" {
151+
returntrue
152+
}
153+
143154
// Dispatches should take a non-zero amount of time.
144155
returnmetric.Histogram.GetSampleSum()>0
145156
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp