Skip to content

Commit

Permalink
test: fixed chain-lint error in test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
  • Loading branch information
jiangxin committed Nov 5, 2023
1 parent 2dabddc commit 67dcc25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/t0040-check-commits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ test_expect_success "gbk characters in commit log with proper encoding" '
Signed-off-by: Author <author@example.com>
EOF
iconv -f UTF-8 -t GBK >.git/commit-message
iconv -f UTF-8 -t GBK >.git/commit-message &&
test_tick &&
git -c i18n.commitencoding=GBK commit --allow-empty -F .git/commit-message &&
git cat-file commit HEAD >.git/commit-meta
Expand Down Expand Up @@ -825,7 +825,7 @@ test_expect_success "gbk characters in commit log with wrong encoding" '
Signed-off-by: Author <author@example.com>
EOF
iconv -f UTF-8 -t GBK >.git/commit-message
iconv -f UTF-8 -t GBK >.git/commit-message &&
test_tick &&
git -c i18n.commitencoding=iso-8859-6 commit --allow-empty -F .git/commit-message &&
git cat-file commit HEAD >.git/commit-meta
Expand Down
2 changes: 1 addition & 1 deletion test/t0043-check-commits-in-partial-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ test_expect_success "creater partial clone" '
ls partial-clone.git/objects/pack/*.promisor >out &&
make_user_friendly_and_stable_output <out |
sed -e "s/pack-[0-9a-f]*.promisor/pack-<OID>.promisor/" >actual &&
cat >expect <<-EOF
cat >expect <<-EOF &&
partial-clone.git/objects/pack/pack-<OID>.promisor
EOF
test_cmp actual expect
Expand Down

0 comments on commit 67dcc25

Please sign in to comment.