Skip to content

Commit 53afe58

Browse files
Update Canary.Utilities.psm1
1 parent 86fe6b6 commit 53afe58

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

CanaryValidator/Canary.Utilities.psm1

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -198,28 +198,6 @@ function End-Scenario
198198
{
199199
CloseWTTLogger
200200
}
201-
if ($UseCaseStack.Count)
202-
{
203-
while($UseCaseStack.Count)
204-
{
205-
if ($UseCaseStack.Peek().UseCase)
206-
{
207-
if ($UseCaseStack.Peek().UseCase | Where-Object {$_.Result -eq "FAIL"})
208-
{
209-
$UseCaseStack.Peek().Add("Result", "FAIL")
210-
}
211-
else
212-
{
213-
$UseCaseStack.Peek().Add("Result", "PASS")
214-
}
215-
}
216-
$UseCaseStack.Pop() | Out-Null
217-
}
218-
$jsonReport = ConvertFrom-Json (Get-Content -Path $Global:JSONLogFile -Raw)
219-
$jsonReport.UseCases += , $CurrentUseCase
220-
$jsonReport | ConvertTo-Json -Depth 10 | Out-File -FilePath $Global:JSONLogFile
221-
$CurrentUseCase.Clear()
222-
}
223201
}
224202

225203
function Invoke-Usecase
@@ -271,7 +249,6 @@ function Invoke-Usecase
271249
}
272250
if (-not $Global:ContinueOnFailure)
273251
{
274-
End-Scenario
275252
throw $_.Exception
276253
}
277254
}

0 commit comments

Comments
 (0)