Skip to content

Commit f9897ff

Browse files
committed
test: update kernel driver attachment/detachment assertions for Linux
1 parent 01be891 commit f9897ff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/webusb.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ describe 'Interfaces', ->
160160

161161
if process.platform == 'linux'
162162
it "should fail to detach the kernel driver", ->
163-
assert.throws -> device.detachKernelDriver(0)
163+
assert.rejects(device.detachKernelDriver(0))
164164

165-
it "should fail to attach the kernel driver", ->
166-
assert.throws -> device.attachKernelDriver(0)
165+
it "should attach the kernel driver", ->
166+
assert.doesNotReject(device.attachKernelDriver(0))
167167

168168
after ->
169169
device.close()

0 commit comments

Comments
 (0)