Commit 0b6a84a
test,report: relax CPU match requirements
Some CPUs have variable speeds, and so exact matches between what
`os.cpus()` and the report feature yield cannot always be expected:
```
>const results = []
>setInterval(() => results.push(os.cpus().map(({ speed }) => speed)), 1)
[...]
>results
[
[ 1198, 1150, 1195, 1149 ],
[ 1198, 1150, 1195, 1149 ],
[ 1198, 1150, 1195, 1149 ],
[ 1198, 1150, 1195, 1149 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2401, 2420, 2429, 2413 ],
[ 2596, 2401, 2699, 2555 ],
[...]
```
Refs: #28829
PR-URL: #28884
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent a7ef102 commit 0b6a84a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments