Skip to content

Commit

Permalink
tests: restructure test case
Browse files Browse the repository at this point in the history
so nscp has some more time to start
  • Loading branch information
sni committed Sep 4, 2024
1 parent 144fff6 commit dcff33e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/citest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ jobs:
go mod vendor
$Env:GOWORK = ""
# build check_nsc_web
go build -o ./mod_gearman_worker.exe cmd/mod_gearman_worker/main.go
# install nscp
Invoke-WebRequest -UseBasicParsing -Uri https://github.com/mickem/nscp/releases/download/0.5.2.35/NSCP-0.5.2.35-x64.msi -OutFile NSCP-0.5.2.35-x64.msi
Start-Process msiexec -Wait -ArgumentList '/i NSCP-0.5.2.35-x64.msi /qn CONF_WEB=1 NSCLIENT_PWD=test'
Expand All @@ -62,6 +59,9 @@ jobs:
net stop nscp
net start nscp
# build check_nsc_web
go build -o ./mod_gearman_worker.exe cmd/mod_gearman_worker/main.go
# check if connection works
.\mod_gearman_worker.exe testcmd ../check_nsc_web -k -p test -u https://127.0.0.1:8443 ; if ($LASTEXITCODE -ne 0) { exit 1 }
.\mod_gearman_worker.exe testcmd ../check_nsc_web -k -p test -u https://127.0.0.1:8443 check_nscp_version ; if ($LASTEXITCODE -ne 0) { exit 1 }

0 comments on commit dcff33e

Please sign in to comment.