Skip to content

Commit

Permalink
NotFastForward test noop rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyagr committed Apr 18, 2024
1 parent 2d13e97 commit feeee13
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/tests/test_git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use std::{fs, iter, thread};

use assert_matches::assert_matches;
use git2::Oid;
use insta::assert_debug_snapshot;
use itertools::Itertools;
use jj_lib::backend::{BackendError, ChangeId, CommitId, MillisSinceEpoch, Signature, Timestamp};
use jj_lib::commit::Commit;
Expand Down Expand Up @@ -2719,7 +2720,11 @@ fn test_push_branches_not_fast_forward() {
&targets,
git::RemoteCallbacks::default(),
);
assert_eq!(result, Err(GitPushError::NotFastForward));
assert_debug_snapshot!(result, @r###"
Err(
NotFastForward,
)
"###);
}

#[test]
Expand Down

0 comments on commit feeee13

Please sign in to comment.