@@ -8,7 +8,7 @@ potentially limited native resources.
88import { Fixture } from '../../../../common/framework/fixture.js' ;
99import { makeTestGroup } from '../../../../common/framework/test_group.js' ;
1010import { getGPU } from '../../../../common/util/navigator_gpu.js' ;
11- import { assert , assertReject , raceWithRejectOnTimeout } from '../../../../common/util/util.js' ;
11+ import { assert , assertReject } from '../../../../common/util/util.js' ;
1212import {
1313 getDefaultLimitsForCTS ,
1414 kFeatureNames ,
@@ -69,8 +69,7 @@ g.test('invalid')
6969 Test that requesting device on an invalid adapter resolves with lost device.
7070 - Induce invalid adapter via a device lost from a device.destroy()
7171 - Check the device is lost with reason 'destroyed'
72- - Try creating another device on the now-stale adapter
73- - Check that returns a device lost with 'unknown'
72+ - Try creating another device on the now-stale adapter fails.
7473 `
7574 )
7675 . fn ( async t => {
@@ -87,12 +86,8 @@ g.test('invalid')
8786 t . expect ( lostInfo . reason === 'destroyed' ) ;
8887 }
8988
90- // The adapter should now be invalid since a device was lost. Requesting another device should
91- // return an already lost device.
92- const kTimeoutMS = 1000 ;
93- const device = await t . requestDeviceTracked ( adapter ) ;
94- const lost = await raceWithRejectOnTimeout ( device . lost , kTimeoutMS , 'device was not lost' ) ;
95- t . expect ( lost . reason === 'unknown' ) ;
89+ // The adapter should now be invalid since a device was lost. Requesting another device is not possible anymore.
90+ t . shouldReject ( 'OperationError' , t . requestDeviceTracked ( adapter ) ) ;
9691 } ) ;
9792
9893g . test ( 'stale' )
0 commit comments