Skip to content

Commit e139b5a

Browse files
committed
chore: add deterministic date format for test_assert_match_snapshot_with_placeholder
1 parent 4f16343 commit e139b5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/assert_snapshot_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function test_assert_match_snapshot_with_placeholder() {
8989
local snapshot_path="$temp_dir/assert_snapshot_test_sh.test_assert_match_snapshot_with_placeholder.snapshot"
9090
echo 'Run at ::ignore::' > "$snapshot_path"
9191

92-
assert_empty "$(assert_match_snapshot "Run at $(date)" "$snapshot_path")"
92+
assert_empty "$(assert_match_snapshot "Run at $(date -u '+%F %T UTC')" "$snapshot_path")"
9393

9494
rm -rf "$temp_dir"
9595
}

0 commit comments

Comments
 (0)