diff options
author | Umang Jain <umang@endlessm.com> | 2018-09-14 20:22:37 +0530 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-09-21 15:09:12 +0000 |
commit | 5d2e62affb7eaf919411fff667f1097fb14885a1 (patch) | |
tree | 5ba2ac8e76abf9fc15b052f65cfabe7a78da0bd5 /tests/test-repo.c | |
parent | a0937b6cf03996416c338b996a87677d6b65da14 (diff) | |
download | ostree-5d2e62affb7eaf919411fff667f1097fb14885a1.tar.gz |
tests: Update tests for ostree_repo_get_min_free_space_bytes()
https://github.com/ostreedev/ostree/issues/1720
Closes: #1722
Approved by: pwithnall
Diffstat (limited to 'tests/test-repo.c')
-rw-r--r-- | tests/test-repo.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/test-repo.c b/tests/test-repo.c index c56f60c5..9857228e 100644 --- a/tests/test-repo.c +++ b/tests/test-repo.c @@ -157,6 +157,7 @@ test_repo_get_min_free_space (Fixture *fixture, { g_autoptr (GKeyFile) config = NULL; g_autoptr(GError) error = NULL; + guint64 bytes = 0; typedef struct { const char *val; @@ -188,17 +189,11 @@ test_repo_get_min_free_space (Fixture *fixture, ostree_repo_reload_config (repo, NULL, &error); g_assert_no_error (error); - ostree_repo_prepare_transaction (repo, FALSE, NULL, &error); + ostree_repo_get_min_free_space_bytes (repo, &bytes, &error); if (values_to_test[i].should_succeed) g_assert_no_error (error); else continue; - - ostree_repo_get_min_free_space_bytes (repo); - g_assert_no_error (error); - - ostree_repo_commit_transaction (repo, NULL, NULL, &error); - g_assert_no_error (error); } } |