Skip to content

Commit

Permalink
Improve 2 smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchodias committed Jul 12, 2024
1 parent 86fc18b commit 4ebf1f7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,19 @@ Class {
{ #category : #tests }
BlPaneCreatingReorderingHandlerTest >> testShowInSpace [

| aSpace |
| aSpace shown semaphore |
shown := false.
semaphore := Semaphore new.

aSpace := BlPaneCreatingReorderingHandler new fittingColumnsExample.
0.5 seconds wait.
aSpace close.
0.5 seconds wait
aSpace
when: BlSpaceShownEvent
doOnce: [ :event |
shown := true.
aSpace close.
semaphore signal ].

semaphore wait.

self assert: shown
]
18 changes: 14 additions & 4 deletions src/Bloc-Memory-Tests/MGGameElementTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,19 @@ Class {
{ #category : #tests }
MGGameElementTest >> testShowInSpace [

| space |
space := MGGameElement example.
space
| aSpace shown semaphore |
shown := false.
semaphore := Semaphore new.

aSpace := MGGameElement example.
aSpace
when: BlSpaceShownEvent
doOnce: [ :event | space close ]
doOnce: [ :event |
shown := true.
aSpace close.
semaphore signal ].

semaphore wait.

self assert: shown
]

0 comments on commit 4ebf1f7

Please sign in to comment.