File tree Expand file tree Collapse file tree
src/webgpu/api/operation/adapter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -173,20 +173,8 @@ g.test('stale')
173173 ) ;
174174 }
175175
176- const kTimeoutMS = 1000 ;
177- const lostDevice = await t . requestDeviceTracked ( adapter ) ;
178- const lost = await raceWithRejectOnTimeout (
179- lostDevice . lost ,
180- kTimeoutMS ,
181- 'adapter was not stale'
182- ) ;
183- t . expect ( lost . reason === 'unknown' ) ;
184-
185- // Make sure to destroy the valid device after trying to get a second one. Otherwise, the second
186- // device may fail because the adapter is put into an invalid state from the destroy.
187- if ( device ) {
188- device . destroy ( ) ;
189- }
176+ // Since the adapter is consumed now, requesting another device is not possible anymore.
177+ t . shouldReject ( 'OperationError' , t . requestDeviceTracked ( adapter ) ) ;
190178 } ) ;
191179
192180g . test ( 'features,unknown' )
You can’t perform that action at this time.
0 commit comments