Skip to content

Commit 2a4c674

Browse files
committed
Fix: Windows
1 parent 7ba16b5 commit 2a4c674

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/prometheusmetrics/prometheusmetrics_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ func TestAgentStats(t *testing.T) {
457457

458458
out, err = json.MarshalIndent(collected, "", " ")
459459
require.NoError(t, err)
460+
out = bytes.ReplaceAll(out, []byte("\r\n"), []byte("\n")) // comparison fix for Windows
460461

461462
return executionSeconds && string(goldenFile) == string(out)
462463
}, testutil.WaitShort, testutil.IntervalFast)

0 commit comments

Comments
 (0)