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
|
@ -194,11 +194,12 @@
|
|||
%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 New Issue