Changeset: cdc8b5e1610a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/cdc8b5e1610a
Modified Files:
sql/test/sysmon/Tests/test_vacuum.SQL.py
Branch: strheapvacuum
Log Message:
add test condition
diffs (17 lines):
diff --git a/sql/test/sysmon/Tests/test_vacuum.SQL.py
b/sql/test/sysmon/Tests/test_vacuum.SQL.py
--- a/sql/test/sysmon/Tests/test_vacuum.SQL.py
+++ b/sql/test/sysmon/Tests/test_vacuum.SQL.py
@@ -6,10 +6,13 @@ with SQLTestCase() as tc:
tc.execute('drop table if exists foo;')
tc.execute("create table foo(a string);").assertSucceeded()
tc.execute('insert into foo values (\'hello\');').assertSucceeded()
+ res = tc.execute("select heapsize from sys.storage('sys', 'foo',
'a');").assertSucceeded()
+ heap_init = int(res.data[0][0])
for i in range(1000):
tc.execute(f"update foo set a='{str(uuid4())}';").assertSucceeded()
res = tc.execute("select heapsize from sys.storage('sys', 'foo',
'a');").assertSucceeded()
heap_large = int(res.data[0][0])
+ assert(heap_large > heap_init)
tc.execute("call sys.vacuum('sys', 'foo', 'a');").assertSucceeded()
res = tc.execute("select heapsize from sys.storage('sys', 'foo',
'a');").assertSucceeded()
heap_small = int(res.data[0][0])
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list