diff options
author | Dan Nicholson <nicholson@endlessm.com> | 2019-07-08 15:39:11 -0600 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2019-07-23 12:49:26 +0000 |
commit | 2312caad7633d7aae11adebd87e4f932431bf49a (patch) | |
tree | 15b905ae4fe0d27247f8bffe6755f5dbac858c01 /tests/test-sizes.js | |
parent | a904f434cd10471e02465781d62669321dea94d7 (diff) | |
download | ostree-2312caad7633d7aae11adebd87e4f932431bf49a.tar.gz |
tests/sizes: Fix call to commit_transaction()
The GIR for commit_transaction() only has a single argument for the
GCancellable. Calling it with 2 arguments prints a GJS warning:
Gjs-Message: 15:37:40.287: JS WARNING: [/home/dan/src/ostree/tests/test-sizes.js 56]: Too many arguments to method OSTree.Repo.commit_transaction: expected 1, got 2
Currently this is harmless, but it could become a hard error in GJS at
some point.
Closes: #1884
Approved by: cgwalters
Diffstat (limited to 'tests/test-sizes.js')
-rwxr-xr-x | tests/test-sizes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-sizes.js b/tests/test-sizes.js index 5114dd64..d923e749 100755 --- a/tests/test-sizes.js +++ b/tests/test-sizes.js @@ -53,7 +53,7 @@ let [,dirTree] = repo.write_mtree(mtree, null); let [,commit] = repo.write_commit(null, 'Some subject', 'Some body', null, dirTree, null); print("commit => " + commit); -repo.commit_transaction(null, null); +repo.commit_transaction(null); // Test the sizes metadata let [,commitVariant] = repo.load_variant(OSTree.ObjectType.COMMIT, commit); |