Skip to content

Commit a5a931e

Browse files
author
Sean
committed
bugfixes
1 parent 96b36bf commit a5a931e

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

private/Invoke-LogMessages.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Invoke-LogMessages
1212
Write-Info -p -ps -m $testData.messages.startmsgs
1313

1414
$p = $testData.MessagePrefix
15-
$f = $WS_START_PATH
15+
$f = $WS_MSG_LOG_PATH
1616
$c = $testData.EnableConsoleLogs ? '$true' : '$false'
1717

1818
$cmd = {

private/Invoke-WebServer.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function Invoke-WebServer
1818
'-Port', $testData.WebServerPort, `
1919
"-EnableConsoleLogs:$($testData.EnableConsoleLogs)")
2020
Write-Info -m $($testData.messages.startedws -f $testData.WebServerPort)
21-
Start-Sleep -Seconds 5
21+
Start-Sleep -Seconds 3
2222
}
2323
catch {
2424
Write-Info -e -m $( "... WebServer failed to start: {0}" -f $_.Exception.Message )
@@ -37,7 +37,7 @@ function Invoke-WebServer
3737
'-Port', $testData.WebServerPort, `
3838
"-EnableConsoleLogs:$($testData.EnableConsoleLogs)")
3939
Write-Info -m $($testData.messages.startedws -f $testData.WebServerPort)
40-
Start-Sleep -Seconds 5
40+
Start-Sleep -Seconds 3
4141
}
4242
catch {
4343
Write-Info -e -m $( "... WebServer failed to start: {0}" -f $_.Exception.Message )

psPodTester-tests.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,13 @@ if ( $Test.DockerCode )
6767
#$env:PSPOD_TEST_NoStress = 1
6868
$env:PSPOD_TEST_WebServerPort = 8080
6969
$env:PSPOD_TEST_EnableWebServer = 1
70+
$env:PSPOD_TEST_EnableConsoleLogs = 1
7071
$env:PSPOD_TEST_ShowDebugData = 1
7172
$env:PSPOD_TEST_ShowPodInfo = 1
7273
$env:PSPOD_INFO_PodName = 'Podname'
7374
$env:PSPOD_INFO_ServerName = 'ServerName'
7475
$env:PSPOD_TEST_SendMessages = 1
75-
$env:PSPOD_TEST_MessagePrefix ='UniqueMessagePrefix'
76+
$env:PSPOD_TEST_MessagePrefix = 'UniqueMessagePrefix'
7677

7778
#Remove-Item -Path Env:\PSPOD_TEST_*
7879

@@ -133,19 +134,20 @@ if ( $Test.DockerContainer )
133134
-e "PSPOD_TEST_EnableWebServer=1" `
134135
-e "PSPOD_TEST_SendMessages=1" `
135136
-e "PSPOD_TEST_MessagePrefix=UniqueMessagePrefix" `
137+
-e "PSPOD_TEST_EnableConsoleLogs=1" `
136138
-e "PSPOD_TEST_NoExit=1" `
137139
-e "PSPOD_TEST_NoStress=1" `
140+
-e "PSPOD_TEST_ShowDebugData=1" `
138141
-e "PSPOD_TEST_ShowPodInfo=1" `
139142
-e "PSPOD_TEST_CpuThreads=2" `
140143
-e "PSPOD_TEST_MemThreads=2" `
141144
-e "PSPOD_TEST_NoMemory=1" `
142-
-e "PSPOD_TEST_EnableConsoleLogs=1" `
143145
-e "PSPOD_INFO_PodName=TestPod" `
144146
-e "PSPOD_INFO_ServerName=TestServer" `
145147
-it --user ContainerAdministrator `
146148
-p 8080:8080 `
147149
mcr.microsoft.com/powershell:nanoserver-1809 `
148-
pwsh -ExecutionPolicy Bypass -command "/psPodTester/docker.ps1"
150+
cmd /c pwsh -ExecutionPolicy Bypass -command "/psPodTester/docker.ps1"
149151

150152
# AUTOMATED STRESSING
151153
# Runs a stress session with the default values and exits. The default settings do

public/Start-Testing.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function Start-Testing
186186

187187
if ( $testData.EnableWebServer ) { Invoke-WebServer -TestData $testData }
188188

189-
if ( $testData.SendMessages ) { Invoke-LogMessages -MessagePrefix $testData.MessagePrefix }
189+
if ( $testData.SendMessages ) { Invoke-LogMessages -TestData $testData }
190190

191191
if ( $NoStress ) {
192192
Write-Info -p -ps -m $testData.messages.nostress

0 commit comments

Comments
 (0)