forked from mirrors/jj
tests: use jj_cmd_ok() in test_git_fetch_single_remote()
This commit is contained in:
parent
6e0f5596df
commit
6a98799176
1 changed files with 5 additions and 5 deletions
|
@ -107,11 +107,11 @@ fn test_git_fetch_single_remote() {
|
||||||
let repo_path = test_env.env_root().join("repo");
|
let repo_path = test_env.env_root().join("repo");
|
||||||
add_git_remote(&test_env, &repo_path, "rem1");
|
add_git_remote(&test_env, &repo_path, "rem1");
|
||||||
|
|
||||||
test_env
|
let (_stdout, stderr) = test_env.jj_cmd_ok(&repo_path, &["git", "fetch"]);
|
||||||
.jj_cmd(&repo_path, &["git", "fetch"])
|
insta::assert_snapshot!(stderr, @r###"
|
||||||
.assert()
|
Fetching from the only existing remote: rem1
|
||||||
.success()
|
branch: rem1@rem1 [new] tracked
|
||||||
.stderr("Fetching from the only existing remote: rem1\nbranch: rem1@rem1 [new] tracked\n");
|
"###);
|
||||||
insta::assert_snapshot!(get_branch_output(&test_env, &repo_path), @r###"
|
insta::assert_snapshot!(get_branch_output(&test_env, &repo_path), @r###"
|
||||||
rem1: qxosxrvv 6a211027 message
|
rem1: qxosxrvv 6a211027 message
|
||||||
@rem1: qxosxrvv 6a211027 message
|
@rem1: qxosxrvv 6a211027 message
|
||||||
|
|
Loading…
Reference in a new issue