Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Sep 20, 2023
1 parent 0c8330e commit c30ccc6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions source/Launchpad-Commands-Tests/LaunchpadRootCommandTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -803,24 +803,26 @@ LaunchpadRootCommandTest >> testHandlingStartSubcommandShortHelp [
LaunchpadRootCommandTest >> testHandlingStopBrokenApplicationWhileRunning [

| semaphore |

semaphore := Semaphore new.

[
[ self handle: #( 'launchpad' 'start' '--debug-mode' 'broken' '--raise-error' ) ]
on: Error
do: [ :error |
semaphore wait.
error return
]
] forkAt: Processor userInterruptPriority named: 'Launching broken application'.
LanguagePlatform current
fork: [
[
self handle:
#( 'launchpad' 'start' '--debug-mode' 'broken' '--raise-error' ) ]
on: Error
do: [ :error |
semaphore wait.
error return ] ]
named: 'Launching broken application'
at: Processor userInterruptPriority.

LaunchpadApplication currentlyRunning stop.
semaphore signal.

self assertLogRecordsMatch:
#( '[INFO] broken [v0.0.1] - A broken application'
'[INFO] Obtaining configuration...'
'[INFO] Obtaining configuration...'
'[INFO] Obtaining configuration... [DONE]' )
]

Expand Down

0 comments on commit c30ccc6

Please sign in to comment.