diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/config/refresh.c | 9 | ||||
-rw-r--r-- | tests/config/snapshot.c | 5 |
2 files changed, 3 insertions, 11 deletions
diff --git a/tests/config/refresh.c b/tests/config/refresh.c index 99d677f0e..08cd45b95 100644 --- a/tests/config/refresh.c +++ b/tests/config/refresh.c @@ -26,9 +26,6 @@ void test_config_refresh__update_value(void) cl_git_rewritefile(TEST_FILE, "[section]\n\tvalue = 10\n\n"); - cl_git_pass(git_config_get_int32(&v, cfg, "section.value")); - cl_assert_equal_i(1, v); - cl_git_pass(git_config_refresh(cfg)); cl_git_pass(git_config_get_int32(&v, cfg, "section.value")); @@ -53,9 +50,9 @@ void test_config_refresh__delete_value(void) cl_git_rewritefile(TEST_FILE, "[section]\n\tnewval = 10\n\n"); - cl_git_pass(git_config_get_int32(&v, cfg, "section.value")); - cl_assert_equal_i(1, v); - cl_git_fail(git_config_get_int32(&v, cfg, "section.newval")); + cl_git_fail_with(GIT_ENOTFOUND, git_config_get_int32(&v, cfg, "section.value")); + + cl_git_pass(git_config_get_int32(&v, cfg, "section.newval")); cl_git_pass(git_config_refresh(cfg)); diff --git a/tests/config/snapshot.c b/tests/config/snapshot.c index a9d3eadd3..c9f15921a 100644 --- a/tests/config/snapshot.c +++ b/tests/config/snapshot.c @@ -19,11 +19,6 @@ void test_config_snapshot__create_snapshot(void) cl_git_mkfile(filename, "[old]\nvalue = 56\n"); cl_git_pass(git_config_get_int32(&tmp, cfg, "old.value")); - cl_assert_equal_i(5, tmp); - - cl_git_pass(git_config_refresh(cfg)); - - cl_git_pass(git_config_get_int32(&tmp, cfg, "old.value")); cl_assert_equal_i(56, tmp); cl_git_pass(git_config_get_int32(&tmp, snapshot, "old.value")); |