From 200f40b8362516a666222776c11960cd4a9f55b7 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Sun, 29 Jan 2023 07:35:41 +0100 Subject: [PATCH] tests: use change id instead of commit id in split tests --- tests/test_split_command.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_split_command.rs b/tests/test_split_command.rs index b0be67765..614f0378f 100644 --- a/tests/test_split_command.rs +++ b/tests/test_split_command.rs @@ -26,9 +26,9 @@ fn test_split_by_paths() { std::fs::write(repo_path.join("file2"), "foo").unwrap(); std::fs::write(repo_path.join("file3"), "foo").unwrap(); - let stdout = test_env.jj_cmd_success(&repo_path, &["log", "-T", "commit_id.short()"]); + let stdout = test_env.jj_cmd_success(&repo_path, &["log", "-T", "change_id.short()"]); insta::assert_snapshot!(stdout, @r###" - @ 9d08ea8cac40 + @ 9a45c67d3e96 o 000000000000 "###); @@ -64,10 +64,10 @@ fn test_split_by_paths() { JJ: Lines starting with "JJ: " (like this one) will be removed. "###); - let stdout = test_env.jj_cmd_success(&repo_path, &["log", "-T", "commit_id.short()"]); + let stdout = test_env.jj_cmd_success(&repo_path, &["log", "-T", "change_id.short()"]); insta::assert_snapshot!(stdout, @r###" - @ 45833353d94e - o 5eebce1de3b0 + @ ffdaa62087a2 + o 9a45c67d3e96 o 000000000000 "###);