From 06590b5d75d66ddfd3344aa6acc72bf0309d5e4e Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Thu, 11 Apr 2024 17:32:34 -0700 Subject: [PATCH] NotFastForward test noop rewrite --- lib/tests/test_git.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/tests/test_git.rs b/lib/tests/test_git.rs index a78523532f..29428f85da 100644 --- a/lib/tests/test_git.rs +++ b/lib/tests/test_git.rs @@ -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; @@ -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]