Skip to content

Commit 58cde83

Browse files
committed
test(report-stack): refresh relocated manifests
1 parent b5dfcf5 commit 58cde83

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/fm-report-stack.test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,8 @@ test_generation_identity_falls_back_only_when_both_sides_are_legacy() {
537537
first=$(sed -n 's/.*"completedAt": "\([^"]*\)".*/\1/p' "$manifest")
538538
/bin/sleep 0.02
539539
run_stack publish "$id" >/dev/null || fail "new-id-over-legacy publication failed"
540+
entry=$(run_stack path "$id") || fail "new-id-over-legacy path lookup failed"
541+
manifest="$(dirname "$entry")/manifest.json"
540542
second=$(sed -n 's/.*"completedAt": "\([^"]*\)".*/\1/p' "$manifest")
541543
[ -n "$second" ] && [ "$second" != "$first" ] \
542544
|| fail "a new generation id reused a legacy manifest completion time"
@@ -554,6 +556,8 @@ test_generation_identity_falls_back_only_when_both_sides_are_legacy() {
554556
first=$(sed -n 's/.*"completedAt": "\([^"]*\)".*/\1/p' "$manifest")
555557
/bin/sleep 0.02
556558
run_stack publish "$id" >/dev/null || fail "legacy-over-new-id publication failed"
559+
entry=$(run_stack path "$id") || fail "legacy-over-new-id path lookup failed"
560+
manifest="$(dirname "$entry")/manifest.json"
557561
second=$(sed -n 's/.*"completedAt": "\([^"]*\)".*/\1/p' "$manifest")
558562
[ -n "$second" ] && [ "$second" != "$first" ] \
559563
|| fail "legacy metadata reused a generation-bound manifest completion time"

0 commit comments

Comments
 (0)