From 1e175bc41f9ccde5bc1af4dbaee2b0f6aa4ec203 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 17 Dec 2019 14:10:05 +0100 Subject: [PATCH] Remove used cursors from benchmark db test --- plugins/Benchmark/BenchmarkDb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/Benchmark/BenchmarkDb.py b/plugins/Benchmark/BenchmarkDb.py index 6aa3a028..a767a3f4 100644 --- a/plugins/Benchmark/BenchmarkDb.py +++ b/plugins/Benchmark/BenchmarkDb.py @@ -116,6 +116,7 @@ class ActionsPlugin: for row in res: found_total += 1 found += 1 + del(res) yield "." assert found == 100, "%s != 100 (i: %s)" % (found, i) yield "Found: %s" % found_total @@ -134,6 +135,7 @@ class ActionsPlugin: found_total += 1 found += 1 yield "." + del(res) if i == 0 or i > 100: assert found == 0, "%s != 0 (i: %s)" % (found, i) else: