Skip to content

Commit

Permalink
Let the operating system the time to run the process before removing …
Browse files Browse the repository at this point in the history
…files in tear down
  • Loading branch information
demarey committed Mar 22, 2024
1 parent d442eed commit aabd99d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ PhLLaunchImageTest >> setUp [
{ #category : #running }
PhLLaunchImageTest >> tearDown [
PhLLaunchConfiguration launchInALoginShell: launchInALoginShellBackup.
tempVmStoreFolder ensureDeleteAll.
PhLVirtualMachineManager vmStore: vmStoreBackup.
imageDir ensureDeleteAll.
process ifNotNil: [ process isRunning ifTrue: [ process terminate ] ].
tempVmStoreFolder ensureDeleteAll.
imageDir ensureDeleteAll.
super tearDown
]

Expand All @@ -97,6 +97,7 @@ PhLLaunchImageTest >> testCanLaunchImageWithNonAsciiCharacters [
image := self copyCurrentImageToTestDir.

image launch.
2 seconds wait.

"ensure image determination succeeded"
self
Expand Down Expand Up @@ -139,6 +140,7 @@ PhLLaunchImageTest >> testLaunchImageSetShouldRunInitilizationScriptToFalse [
image := self copyCurrentImageToTestDir.

image launch.
2 seconds wait.

image := PhLImage location: imageDir / FileLocator image basename. "read image metadata from disk"
self deny: image shouldRunInitializationScript.
Expand Down

0 comments on commit aabd99d

Please sign in to comment.