Skip to content

Commit 8f0d5cd

Browse files
author
Edward Thomson
committed
tests: update error message checking
1 parent 909d549 commit 8f0d5cd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/fetchhead/nonetwork.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void test_fetchhead_nonetwork__invalid_for_merge(void)
293293
cl_git_rewritefile("./test1/.git/FETCH_HEAD", "49322bb17d3acc9146f98c97d078513228bbf3c0\tinvalid-merge\t\n");
294294
cl_git_fail(git_repository_fetchhead_foreach(g_repo, read_noop, NULL));
295295

296-
cl_assert(git__prefixcmp(giterr_last()->message, "Invalid for-merge") == 0);
296+
cl_assert(git__prefixcmp(giterr_last()->message, "invalid for-merge") == 0);
297297
}
298298

299299
void test_fetchhead_nonetwork__invalid_description(void)
@@ -304,7 +304,7 @@ void test_fetchhead_nonetwork__invalid_description(void)
304304
cl_git_rewritefile("./test1/.git/FETCH_HEAD", "49322bb17d3acc9146f98c97d078513228bbf3c0\tnot-for-merge\n");
305305
cl_git_fail(git_repository_fetchhead_foreach(g_repo, read_noop, NULL));
306306

307-
cl_assert(git__prefixcmp(giterr_last()->message, "Invalid description") == 0);
307+
cl_assert(git__prefixcmp(giterr_last()->message, "invalid description") == 0);
308308
}
309309

310310
static int assert_master_for_merge(const char *ref, const char *url, const git_oid *id, unsigned int is_merge, void *data)

tests/odb/backend/nobackend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void test_odb_backend_nobackend__write_fails_gracefully(void)
4040
cl_git_fail(git_odb_write(&id, odb, "Hello world!\n", 13, GIT_OBJ_BLOB));
4141

4242
err = giterr_last();
43-
cl_assert_equal_s(err->message, "Cannot write object - unsupported in the loaded odb backends");
43+
cl_assert_equal_s(err->message, "cannot write object - unsupported in the loaded odb backends");
4444

4545
git_odb_free(odb);
4646
}

tests/refs/branches/upstream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void test_refs_branches_upstream__no_fetch_refspec(void)
175175
cl_git_pass(git_reference_lookup(&branch, repo, "refs/heads/test"));
176176
cl_git_pass(git_reference_create(&ref, repo, "refs/remotes/matching/master", git_reference_target(branch), 1, "fetch"));
177177
cl_git_fail(git_branch_set_upstream(branch, "matching/master"));
178-
cl_assert_equal_s("Could not determine remote for 'refs/remotes/matching/master'",
178+
cl_assert_equal_s("could not determine remote for 'refs/remotes/matching/master'",
179179
giterr_last()->message);
180180

181181
/* we can't set it automatically, so let's test the user setting it by hand */

tests/refs/reflog/reflog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void test_refs_reflog_reflog__reading_a_reflog_with_invalid_format_returns_error
261261
error = giterr_last();
262262

263263
cl_assert(error != NULL);
264-
cl_assert_equal_s("Unable to parse OID - contains invalid characters", error->message);
264+
cl_assert_equal_s("unable to parse OID - contains invalid characters", error->message);
265265

266266
git_reference_free(ref);
267267
git_buf_free(&logpath);

0 commit comments

Comments
 (0)