make the tests compatibles to a Windows OS with a slow internet connection
ADD
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/replaceOSByMacIn..st
+tests
+replaceOSByMacIn: url
+ ^ (url copyReplaceAll: 'linux' with: 'mac') copyReplaceAll: 'win' with: 'mac'
\ No newline at end of file

MODIFY
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testCanDetect32BitsImage.st
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testCanDetect32BitsImage.st
tests
testCanDetect32BitsImage
| version |
-
+ self timeLimit: 60 seconds.
version := PhLVirtualMachineManager imageFormatNumberFromStream: self thirtyTwoBitsHeader.
self assert: (PhLVirtualMachineManager is32bits: version)
\ No newline at end of file

MODIFY
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testCanDetect64BitsImage.st
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testCanDetect64BitsImage.st
tests
testCanDetect64BitsImage
| version |
-
- ZnConstants defaultMaximumEntitySize: 25 * 1024 * 1024. "25 Mb"
+ self timeLimit: 60 seconds.
version := PhLVirtualMachineManager imageFormatNumberFromStream: self sixtyFourBitsHeader.
self assert: (PhLVirtualMachineManager is64bits: version)
\ No newline at end of file

MODIFY
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testCanDetectPreSpurImage.st
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testCanDetectPreSpurImage.st
tests
testCanDetectPreSpurImage
| version |
-
+ self timeLimit: 60 seconds.
version := PhLVirtualMachineManager imageFormatNumberFromStream: self preSpurHeader.
self assert: (PhLVirtualMachineManager isPreSpur: version)
\ No newline at end of file

MODIFY
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testPharo50PreSpurImageUrlIsCorrect.st
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testPharo50PreSpurImageUrlIsCorrect.st
tests
testPharo50PreSpurImageUrlIsCorrect
| url |
- url := (PhLVirtualMachineManager new
+ url := PhLVirtualMachineManager new
imageFormatNumber: PhLVirtualMachineManager imageFormatPreSpur;
imageVersion: '50';
- vmUrl).
- self
- assert: (url copyReplaceAll: 'linux' with: 'mac')
- equals: 'http://files.pharo.org/get-files/50-preSpur/pharo-mac-stable.zip'
\ No newline at end of file
+ vmUrl.
+ self assert: (self replaceOSByMacIn: url) equals: 'https://files.pharo.org/get-files/50-preSpur/pharo-mac-stable.zip'
\ No newline at end of file

MODIFY
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testPharo60VmUrlIsCorrect.st
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testPharo60VmUrlIsCorrect.st
tests
testPharo60VmUrlIsCorrect
| url |
- url := (PhLVirtualMachineManager new
+ url := PhLVirtualMachineManager new
imageFormatNumber: PhLVirtualMachineManager imageFormat32bits;
imageVersion: '60';
- vmUrl).
- self
- assert: (url copyReplaceAll: 'linux' with: 'mac')
- equals: 'http://files.pharo.org/get-files/60/pharo-mac-stable.zip'
\ No newline at end of file
+ vmUrl.
+ self assert: (self replaceOSByMacIn: url) equals: 'https://files.pharo.org/get-files/60/pharo-mac-stable.zip'
\ No newline at end of file

MODIFY
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testPharo70Vm64BitsUrlIsCorrect.st
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testPharo70Vm64BitsUrlIsCorrect.st
@@ -6,5 +6,5 @@ testPharo70Vm64BitsUrlIsCorrect
imageVersion: '70';
vmUrl).
self
- assert: (url copyReplaceAll: 'linux' with: 'mac')
- equals: 'http://files.pharo.org/get-files/70/pharo64-mac-stable.zip'
\ No newline at end of file
+ assert: (self replaceOSByMacIn: url)
+ equals: 'https://files.pharo.org/get-files/70/pharo64-mac-stable.zip'
\ No newline at end of file

MODIFY
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testPharo70VmUrlIsCorrect.st
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testPharo70VmUrlIsCorrect.st
@@ -6,5 +6,5 @@ testPharo70VmUrlIsCorrect
imageVersion: '70';
vmUrl).
self
- assert: (url copyReplaceAll: 'linux' with: 'mac')
- equals: 'http://files.pharo.org/get-files/70/pharo-mac-stable.zip'
\ No newline at end of file
+ assert: (self replaceOSByMacIn: url)
+ equals: 'https://files.pharo.org/get-files/70/pharo-mac-stable.zip'
\ No newline at end of file

MODIFY
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testPreSpurImageUrlIsCorrect.st
src/PharoLauncher-Tests-Download.package/PhLVirtualMachineManagerTest.class/instance/testPreSpurImageUrlIsCorrect.st
@@ -6,5 +6,5 @@ testPreSpurImageUrlIsCorrect
imageVersion: '40';
vmUrl).
self
- assert: (url copyReplaceAll: 'linux' with: 'mac')
- equals: 'http://files.pharo.org/get-files/40/pharo-mac-stable.zip'
\ No newline at end of file
+ assert: (self replaceOSByMacIn: url)
+ equals: 'https://files.pharo.org/get-files/40/pharo-mac-stable.zip'
\ No newline at end of file

make the tests compatibles to a Windows OS with a slow internet connection