From 55d1d62ee39e5a6dcf5a6d7273d6c488663e47c3 Mon Sep 17 00:00:00 2001 From: Jingyu Zhou Date: Wed, 10 Jul 2019 15:19:49 -0700 Subject: [PATCH] Fix python tests and use 620 version for C test --- bindings/c/test/txn_size_test.c | 3 +-- bindings/python/tests/size_limit_tests.py | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/bindings/c/test/txn_size_test.c b/bindings/c/test/txn_size_test.c index cec7232b55..73ee9a82e6 100644 --- a/bindings/c/test/txn_size_test.c +++ b/bindings/c/test/txn_size_test.c @@ -97,8 +97,7 @@ void runTests(struct ResultSet *rs) { int main(int argc, char **argv) { srand(time(NULL)); struct ResultSet *rs = newResultSet(); - // FIXME: use version 620 after 6.2 release - checkError(fdb_select_api_version(610), "select API version", rs); + checkError(fdb_select_api_version(620), "select API version", rs); printf("Running performance test at client version: %s\n", fdb_get_client_version()); keys = generateKeys(numKeys, KEY_SIZE); diff --git a/bindings/python/tests/size_limit_tests.py b/bindings/python/tests/size_limit_tests.py index 17f2b3dd5f..33a511442a 100644 --- a/bindings/python/tests/size_limit_tests.py +++ b/bindings/python/tests/size_limit_tests.py @@ -71,22 +71,22 @@ def test_size_limit_option(db): @fdb.transactional def test_get_approximate_size(tr): tr[b'key1'] = b'value1' - s1 = tr.get_approximate_size() + s1 = tr.get_approximate_size().wait() tr[b'key2'] = b'value2' - s2 = tr.get_approximate_size() + s2 = tr.get_approximate_size().wait() assert(s1 < s2) tr.clear(b'key3') - s3 = tr.get_approximate_size() + s3 = tr.get_approximate_size().wait() assert(s2 < s3) tr.add_read_conflict_key(b'key3') - s4 = tr.get_approximate_size() + s4 = tr.get_approximate_size().wait() assert(s3 < s4) tr.add_write_conflict_key(b'key4') - s5 = tr.get_approximate_size() + s5 = tr.get_approximate_size().wait() assert(s4 < s5) # Expect a cluster file as input. This test will write to the FDB cluster, so