Skip to content

Commit b010a8a

Browse files
committed
Harden orphans test against parallel test running
1 parent 76b89f4 commit b010a8a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/scripts/pulpcore/test_orphans.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ set -eu
44
# shellcheck source=tests/scripts/config.source
55
. "$(dirname "$(dirname "$(realpath "$0")")")"/config.source
66

7-
expect_succ pulp orphan cleanup
8-
9-
test "$(echo "${OUTPUT}" | jq -r '.state' )" = "completed"
7+
expect_fail pulp --dry-run orphan cleanup
8+
test "${ERROUTPUT}" = "Error: Call aborted due to safe mode"
109

1110
pulp debug has-plugin --name "file" || exit 23
1211

@@ -16,4 +15,6 @@ expect_succ pulp file content upload --file test_1.txt --relative-path orphan_te
1615
content_href=$(echo "${OUTPUT}" | jq -r .pulp_href)
1716

1817
expect_succ pulp orphan cleanup --content-hrefs "[\"$content_href\"]"
19-
expect_succ pulp orphan cleanup --protection-time 10
18+
test "$(echo "${OUTPUT}" | jq -r '.state' )" = "completed"
19+
20+
expect_succ pulp orphan cleanup --protection-time 300

0 commit comments

Comments
 (0)