Skip to content

Commit

Permalink
fix tests to be compatible for Pharo7
Browse files Browse the repository at this point in the history
  • Loading branch information
dionisiydk authored Dec 19, 2022
1 parent 738a6c0 commit 6fd9ba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReadWriteLock-Tests/ReadWriteLockTests.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ReadWriteLockTests >> testFailedReadShouldUnblockWrite [

| executed |
self fork: [
[lock criticalRead: [ 10 milliSeconds wait. self error: 'failed read']] onErrorDo: [ ]
[lock criticalRead: [ 10 milliSeconds wait. self error: 'failed read']] on: Error do: [:err | ]
].

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

| executed |
self fork: [
[lock criticalWrite: [ 10 milliSeconds wait. self error: 'failed write']] onErrorDo: [ ]
[lock criticalWrite: [ 10 milliSeconds wait. self error: 'failed write']] on: Error do: [:err | ]
].

self fork: [lock criticalRead: [ executed := true ]].
Expand Down

0 comments on commit 6fd9ba8

Please sign in to comment.