Skip to content

Commit fd33ff8

Browse files
authored
[integration-tests] Left padded timestamps in render_tests files (#1529)
1 parent 05f3522 commit fd33ff8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

integration-tests/snapshots

Submodule snapshots updated 324 files

integration-tests/src/render_tests.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ fn check_test_names_uniqueness(tests: &[TestCase]) {
100100
}
101101

102102
fn snapshot_save_path(test_name: &str, pts: &Duration) -> PathBuf {
103-
let out_file_name = format!("{}_{}_{}.png", test_name, pts.as_millis(), OUTPUT_ID);
103+
let pts = pts.as_millis();
104+
105+
// Pad timestamp with 0s on the left to the summaric length of 5.
106+
let out_file_name = format!("{test_name}_{pts:05}_{OUTPUT_ID}.png");
104107
render_snapshots_dir_path().join(out_file_name)
105108
}
106109

0 commit comments

Comments
 (0)