Skip to content

Commit 6fd9ba8

Browse files
authored
fix tests to be compatible for Pharo7
1 parent 738a6c0 commit 6fd9ba8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ReadWriteLock-Tests/ReadWriteLockTests.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ReadWriteLockTests >> testFailedReadShouldUnblockWrite [
3737

3838
| executed |
3939
self fork: [
40-
[lock criticalRead: [ 10 milliSeconds wait. self error: 'failed read']] onErrorDo: [ ]
40+
[lock criticalRead: [ 10 milliSeconds wait. self error: 'failed read']] on: Error do: [:err | ]
4141
].
4242

4343
self fork: [lock criticalWrite: [ executed := true ]].
@@ -51,7 +51,7 @@ ReadWriteLockTests >> testFailedWriteShouldUnblockRead [
5151

5252
| executed |
5353
self fork: [
54-
[lock criticalWrite: [ 10 milliSeconds wait. self error: 'failed write']] onErrorDo: [ ]
54+
[lock criticalWrite: [ 10 milliSeconds wait. self error: 'failed write']] on: Error do: [:err | ]
5555
].
5656

5757
self fork: [lock criticalRead: [ executed := true ]].

0 commit comments

Comments
 (0)