chore: fix tailnet integration test flake (#13313)

This commit is contained in:
Dean Sheather
2024-05-21 12:57:39 +10:00
committed by GitHub
parent b8b80fe6d2
commit 273209432d
+3
View File
@@ -449,6 +449,9 @@ func ExecBackground(t *testing.T, processName string, netNS *os.File, name strin
waitErr := make(chan error, 1)
go func() {
err := cmd.Wait()
if err != nil && strings.Contains(err.Error(), "signal: terminated") {
err = nil
}
waitErr <- err
close(waitErr)
}()