Remove used cursors from benchmark db test

This commit is contained in:
shortcutme 2019-12-17 14:10:05 +01:00
parent c16569a6ab
commit 1e175bc41f
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -116,6 +116,7 @@ class ActionsPlugin:
for row in res: for row in res:
found_total += 1 found_total += 1
found += 1 found += 1
del(res)
yield "." yield "."
assert found == 100, "%s != 100 (i: %s)" % (found, i) assert found == 100, "%s != 100 (i: %s)" % (found, i)
yield "Found: %s" % found_total yield "Found: %s" % found_total
@ -134,6 +135,7 @@ class ActionsPlugin:
found_total += 1 found_total += 1
found += 1 found += 1
yield "." yield "."
del(res)
if i == 0 or i > 100: if i == 0 or i > 100:
assert found == 0, "%s != 0 (i: %s)" % (found, i) assert found == 0, "%s != 0 (i: %s)" % (found, i)
else: else: