mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
tests: Fix race condition in 'container-excursion*' test.
* tests/containers.scm ("container-excursion*"): Move (namespace pid) call before (kill pid SIGKILL).
This commit is contained in:
parent
bbc4167995
commit
3e89491741
1 changed files with 2 additions and 1 deletions
|
@ -194,11 +194,12 @@ (define (namespaces pid)
|
|||
%namespaces 1
|
||||
(lambda ()
|
||||
(sleep 100))))
|
||||
(expected (namespaces pid))
|
||||
(result (container-excursion* pid
|
||||
(lambda ()
|
||||
(namespaces 1)))))
|
||||
(kill pid SIGKILL)
|
||||
(equal? result (namespaces pid))))))
|
||||
(equal? result expected)))))
|
||||
|
||||
(skip-if-unsupported)
|
||||
(test-equal "container-excursion*, same namespaces"
|
||||
|
|
Loading…
Reference in a new issue