Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/acceptance/helpers_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/acceptance/helpers_test.go b/test/acceptance/helpers_test.go
index 5fae1349..d21df0a8 100644
--- a/test/acceptance/helpers_test.go
+++ b/test/acceptance/helpers_test.go
@@ -288,11 +288,12 @@ func runPagesProcess(t *testing.T, wait bool, pagesBinary string, listeners []Li
cmd.Stdout = out
cmd.Stderr = out
require.NoError(t, cmd.Start())
+
t.Logf("Running %s %v", pagesBinary, args)
waitCh := make(chan struct{})
go func() {
- cmd.Wait()
+ require.NoError(t, cmd.Wait())
for _, tempfile := range tempfiles {
os.Remove(tempfile)
}
@@ -300,8 +301,7 @@ func runPagesProcess(t *testing.T, wait bool, pagesBinary string, listeners []Li
}()
cleanup := func() {
- cmd.Process.Signal(os.Interrupt)
- cmd.Process.Wait()
+ require.NoError(t, cmd.Process.Signal(os.Interrupt))
<-waitCh
}