Skip to content

Commit

Permalink
Fix failing production tests due to version check
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelle committed Dec 13, 2024
1 parent 6100dcb commit ce06f45
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/smoke-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function RunTests {
$BuildFromSource = $true
)

$filenames = @(
$filenames = @(
"weather",
"bot.paths",
"petstore",
Expand All @@ -134,16 +134,16 @@ function RunTests {
if ($BuildFromSource) {
Write-Host "dotnet publish ../src/Refitter/Refitter.csproj -p:PublishReadyToRun=true -o bin -f net8.0"
Start-Process "dotnet" -Args "publish ../src/Refitter/Refitter.csproj -p:PublishReadyToRun=true -o bin -f net8.0" -NoNewWindow -PassThru | Wait-Process
}

Write-Host "refitter --version"
$process = Start-Process "./bin/refitter" `
-Args " --version" `
-NoNewWindow `
-PassThru
$process | Wait-Process
if ($process.ExitCode -ne 0) {
throw "Show version failed!"
Write-Host "refitter --version"
$process = Start-Process "./bin/refitter" `
-Args " --version" `
-NoNewWindow `
-PassThru
$process | Wait-Process
if ($process.ExitCode -ne 0) {
throw "Show version failed!"
}
}

GenerateAndBuild -format " " -namespace " " -outputPath "SwaggerPetstoreDirect.generated.cs" -args "--settings-file ./petstore.refitter" -buildFromSource $buildFromSource
Expand Down

0 comments on commit ce06f45

Please sign in to comment.