Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed May 21, 2024
1 parent 8eff2d5 commit c1e25d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PhLImagePackageCliCommandTest >> setUp [
vmStoreBackup := PhLVirtualMachineManager vmStore.
tempVmStoreFolder := self imageRepository baseDirectory fileSystem root / 'vms'.
PhLVirtualMachineManager vmStore: tempVmStoreFolder.
vmName := '70-x86'.
vmName := '70-x64'.
(PhLVirtualMachineManager vmStore / vmName) ensureCreateDirectory.
(PhLVirtualMachineManager vmStore / vmName / 'pharo') ensureCreateFile.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ PhLImageRecreateCliCommandTest >> testCanRecreateAnImageShouldSucceed [
DiskStore
currentFileSystem: self imageRepository baseDirectory fileSystem
during: [
self deny: imageFile contents equals: 'foo'.
self deny: imageFile binaryReadStream contents equals: self testTemplateContent.
self runCommand: #('launcher' 'image' 'recreate' 'myImage').
self assertSuccess.
self assert: imageFile exists.
self assert: imageFile contents equals: 'foo'].
self assert: imageFile binaryReadStream contents equals: self testTemplateContent ].

]

Expand All @@ -41,12 +41,18 @@ PhLImageRecreateCliCommandTest >> testCanRecreateAnImageWhenNoImageNameProvidedB
DiskStore
currentFileSystem: self imageRepository baseDirectory fileSystem
during: [
self deny: imageFile contents equals: 'foo'.
self deny: imageFile binaryReadStream contents equals: self testTemplateContent.

self runCommand: #('launcher' 'image' 'recreate').

self assertSuccess.
self assert: imageFile exists.
self assert: imageFile contents equals: 'foo'].
self assert: imageFile binaryReadStream contents equals: self testTemplateContent].

]

{ #category : #accessing }
PhLImageRecreateCliCommandTest >> testTemplateContent [

^ #[102 111 111] " 'foo' in binary) "
]

0 comments on commit c1e25d1

Please sign in to comment.