Skip to content

Commit

Permalink
accept archived or verified
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinAhlberg committed Nov 20, 2024
1 parent 9289b33 commit f27c354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/integration/tests/sda/60_api_admin_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ fileid="$(curl -k -L -H "Authorization: Bearer $token" -H "Content-Type: applica
# wait for the fail to get the correct status
RETRY_TIMES=0

until [ "$(psql -U postgres -h postgres -d sda -At -c "SELECT event FROM sda.file_event_log WHERE file_id='$fileid' order by started_at desc limit 1;")" = "archived" ]; do
until [ "$(psql -U postgres -h postgres -d sda -At -c "select id from sda.file_events e where e.title in (select event from sda.file_event_log where file_id = '$fileid' order by started_at desc limit 1);")" -gt 30 ]; do
echo "waiting for ingest to complete"
RETRY_TIMES=$((RETRY_TIMES + 1))
if [ "$RETRY_TIMES" -eq 30 ]; then
Expand Down

0 comments on commit f27c354

Please sign in to comment.