Skip to content

Commit

Permalink
CI: some versions of powershell are tempermental, intermittently
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Jan 29, 2024
1 parent 2a2b753 commit 5c22bd4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
44 changes: 44 additions & 0 deletions tests/Imageflow.TestWebAOT/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,50 @@
"System.Text.Json": "[6.*, )"
}
}
},
"net8.0/win-x64": {
"Microsoft.DotNet.ILCompiler": {
"type": "Direct",
"requested": "[8.0.1, )",
"resolved": "8.0.1",
"contentHash": "vEmBtYRsH2gpnUJ9p7ElgB2UZSx5+CF2nHVr2QJ/3kzlfAYBxqXMx3VmQcxOcrsDEuF4/n1VH95qobrj8xnPdw==",
"dependencies": {
"runtime.win-x64.Microsoft.DotNet.ILCompiler": "8.0.1"
}
},
"Imageflow.NativeRuntime.osx-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "3wEglrMqVzlnAVBTdK6qcRySdo/4ajBP5ASRuK3yHfBqPp3ld4ke6guxuSZbgDTObIxai7KTLlsIvQZhusymUA=="
},
"Imageflow.NativeRuntime.ubuntu-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "H8K5kZqcM3IliDRZD3H8BN6TbeLgcW+6FsDZ3EvlqBvu41s+Lv9vxE+c3m1cUQhsYBs76udUhgJFNR1D6x3U5g=="
},
"Imageflow.NativeRuntime.win-x86": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "WunIva5NZ2iMPKCyz8ZTkN7SRaW3szBijMg5YK7jaSFZHw8Xiky/GFfghc0XgWTuILxwO4YbY86e8QvW8CBigQ=="
},
"Imageflow.NativeRuntime.win-x86_64": {
"type": "Transitive",
"resolved": "2.0.0-preview8",
"contentHash": "1rY6C9Hjj7U9toa7FlnveiSBKccZlvCaHwdxPRQS0vDpAZZCJrTA/H7VYdreifpnIDInYcf0i/3oEKzEnj884w=="
},
"runtime.win-x64.Microsoft.DotNet.ILCompiler": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "fbzrL7nAZG3OwTcVPUMByDJmlhcekqSjSFPVTs4/4aolumt/1rRUuqWpQAi1UBhUAWu6VqPlmeql65ANl5kk6A=="
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "Vg8eB5Tawm1IFqj4TVK1czJX89rhFxJo9ELqc/Eiq0eXy13RK00eubyU6TJE6y+GQXjyV5gSfiewDUZjQgSE0w==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
}
}
}
}
6 changes: 3 additions & 3 deletions tests/Imageflow.TestWebAOT/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ while ($timeoutCounter -lt $timeout) {
$timeoutMs = $timeoutCounter * 500 + 200
$url = "http://localhost:$port/"
try{
$response = Invoke-WebRequest -Uri $url -OutFile $null -TimeoutSec 1
$response = Invoke-WebRequest -Uri $url -TimeoutSec 1 -OutVariable response
if ($response -ne $null) {
Write-Output "Server responded to GET $url with status code $($response.StatusCode)"
break
Expand Down Expand Up @@ -97,7 +97,7 @@ $testsFailed = 0
try
{
# test /imageflow/version
$version = Invoke-WebRequest -Uri http://localhost:5000/imageflow/version -OutFile $null
$version = Invoke-WebRequest -Uri http://localhost:5000/imageflow/version
if ($LASTEXITCODE -ne 0)
{
Write-Error "Request to /imageflow/version failed with exit code $LASTEXITCODE"
Expand All @@ -111,7 +111,7 @@ try
# test /imageflow/resize/width/10
try
{
$resize = Invoke-WebRequest -Uri http://localhost:5000/imageflow/resize/width/10 -OutFile $null
$resize = Invoke-WebRequest -Uri http://localhost:5000/imageflow/resize/width/10
if ($LASTEXITCODE -ne 0)
{
Write-Warning "Request to /imageflow/resize/width/10 failed with exit code $LASTEXITCODE"
Expand Down

0 comments on commit 5c22bd4

Please sign in to comment.