Skip to content

Commit

Permalink
fix CancelOrdersTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Zschimmer committed Aug 4, 2024
1 parent 6c8d96f commit f51488f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js7-tests/src/test/scala/js7/tests/CancelOrdersTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ final class CancelOrdersTest
"""#!/usr/bin/env bash
|set -euo pipefail
|
|if [ "$1" == "-child" ]; then
|if [ "${1-}" == "-child" ]; then
| # Sometimes, the echo does not take effect: trap "wait; echo CHILD EXIT" EXIT
| trap wait EXIT
| trap "echo CHILD SIGTERM; exit" SIGTERM
Expand Down Expand Up @@ -580,7 +580,7 @@ final class CancelOrdersTest
|set -euo pipefail
|""".stripMargin +
traps + """
|if [ "$1" == "-child" ]; then
|if [ "${1-}" == "-child" ]; then
| sleep 120
|else
| echo READY
Expand Down Expand Up @@ -628,7 +628,7 @@ final class CancelOrdersTest
|trap "wait && exit 7" SIGTERM
|trap "rc=$? && wait && exit $?" EXIT
|
|if [ "$1" == "-child" ]; then
|if [ "${1-}" == "-child" ]; then
| sleep 120
|else
| echo READY
Expand Down

0 comments on commit f51488f

Please sign in to comment.