mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
dotnet: fix race condition in web test
This commit is contained in:
parent
26c3d6878a
commit
4d00d19cd0
@ -134,6 +134,7 @@
|
||||
expect <<"EOF"
|
||||
set status 1
|
||||
spawn $env(src)/test
|
||||
proc abort { } { exit 2 }
|
||||
expect_before default abort
|
||||
expect -re {Now listening on: ([^\r]+)\r} {
|
||||
set url $expect_out(1,string)
|
||||
@ -145,6 +146,8 @@
|
||||
exit 1
|
||||
}
|
||||
send \x03
|
||||
expect_before timeout abort
|
||||
expect eof
|
||||
catch wait result
|
||||
exit [lindex $result 3]
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user