File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/tools/miri/tests/pass/concurrency Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -201,8 +201,9 @@ fn park_timeout() {
201
201
thread:: park_timeout ( Duration :: from_millis ( 200 ) ) ;
202
202
// Normally, waiting in park/park_timeout may spuriously wake up early, but we
203
203
// know Miri's timed synchronization primitives do not do that.
204
-
205
- assert ! ( ( 200 ..1000 ) . contains( & start. elapsed( ) . as_millis( ) ) ) ;
204
+ // We allow much longer sleeps as well since the macOS GHA runners seem very oversubscribed
205
+ // and sometimes just pause for 1 second or more.
206
+ assert ! ( ( 200 ..2000 ) . contains( & start. elapsed( ) . as_millis( ) ) ) ;
206
207
}
207
208
208
209
fn park_unpark ( ) {
@@ -219,8 +220,9 @@ fn park_unpark() {
219
220
thread:: park ( ) ;
220
221
// Normally, waiting in park/park_timeout may spuriously wake up early, but we
221
222
// know Miri's timed synchronization primitives do not do that.
222
-
223
- assert ! ( ( 200 ..1000 ) . contains( & start. elapsed( ) . as_millis( ) ) ) ;
223
+ // We allow much longer sleeps as well since the macOS GHA runners seem very oversubscribed
224
+ // and sometimes just pause for 1 second or more.
225
+ assert ! ( ( 200 ..2000 ) . contains( & start. elapsed( ) . as_millis( ) ) ) ;
224
226
225
227
t2. join ( ) . unwrap ( ) ;
226
228
}
You can’t perform that action at this time.
0 commit comments