Skip to content

Commit 73cf579

Browse files
committed
t5516: relax error message pattern
This test in t5516 is failing some times due to a race condition in the stderr output. The remote is sending an error line in the middle of the local client writing an error. This causes the exact line match specified by the path to be incorrect. Relax the condition a little for now, and consider a better fix to the race condition later. Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
1 parent dd3b512 commit 73cf579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5516-fetch-push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ do
12531253
git cat-file commit $SHA1_2 &&
12541254
test_must_fail env GIT_TEST_PROTOCOL_VERSION= \
12551255
git fetch ../testrepo/.git $SHA1_3 2>err &&
1256-
test_i18ngrep "remote error:.*not our ref.*$SHA1_3\$" err
1256+
test_i18ngrep "not our ref.*$SHA1_3" err
12571257
)
12581258
'
12591259
done

0 commit comments

Comments
 (0)