summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-04-09 12:26:53 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-04-18 16:07:33 +0200
commit8c1f4ab4abdb47c7926fa678577973272be6e2df (patch)
treebf00bfd861914984583b9cfc9a26382dc1b34851 /tests
parentc20d71eac928fef34a89ced3cbb6502ab2763dc9 (diff)
downloadlibgit2-8c1f4ab4abdb47c7926fa678577973272be6e2df.tar.gz
config: refresh on delete
When we delete an entry, we also want to refresh the configuration to catch any changes that happened externally. This allows us to simplify the logic, as we no longer need to delete these variables internally. The whole state will be refreshed and the deleted entries won't be there.
Diffstat (limited to 'tests')
-rw-r--r--tests/config/multivar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/config/multivar.c b/tests/config/multivar.c
index afdb1e5f4..015008992 100644
--- a/tests/config/multivar.c
+++ b/tests/config/multivar.c
@@ -231,13 +231,13 @@ void test_config_multivar__delete(void)
n = 0;
cl_git_pass(git_config_get_multivar_foreach(cfg, _name, NULL, cb, &n));
- cl_assert(n == 2);
+ cl_assert_equal_i(2, n);
cl_git_pass(git_config_delete_multivar(cfg, _name, "github"));
n = 0;
cl_git_pass(git_config_get_multivar_foreach(cfg, _name, NULL, cb, &n));
- cl_assert(n == 1);
+ cl_assert_equal_i(1, n);
git_config_free(cfg);
@@ -245,7 +245,7 @@ void test_config_multivar__delete(void)
n = 0;
cl_git_pass(git_config_get_multivar_foreach(cfg, _name, NULL, cb, &n));
- cl_assert(n == 1);
+ cl_assert_equal_i(1, n);
git_config_free(cfg);
}