about summary refs log tree commit diff
path: root/pkgs/development/compilers/dotnet
diff options
context:
space:
mode:
authorDavid McFarland <corngood@gmail.com>2024-04-22 14:26:09 -0300
committerDavid McFarland <corngood@gmail.com>2024-05-04 19:14:40 -0300
commit4d00d19cd0a63ef9ba750c832a3dd62640e2c3c8 (patch)
treea1bfbdfb7742a78eb957789457c7ce789c59660c /pkgs/development/compilers/dotnet
parent26c3d6878a3c30b726fba660bf31d22adef2edcf (diff)
dotnet: fix race condition in web test
Diffstat (limited to 'pkgs/development/compilers/dotnet')
-rw-r--r--pkgs/development/compilers/dotnet/common.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/compilers/dotnet/common.nix b/pkgs/development/compilers/dotnet/common.nix
index 69503147ea073..1111409a02c61 100644
--- a/pkgs/development/compilers/dotnet/common.nix
+++ b/pkgs/development/compilers/dotnet/common.nix
@@ -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