summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Cope <olly@ollycope.com>2018-01-29 14:44:52 +0000
committerOlly Cope <olly@ollycope.com>2018-01-29 14:44:52 +0000
commit120d2252acae0b6152879fb2cff88e1d241b269c (patch)
tree269b08a2ba826ddea2bda66ddeb6089021e7727b
parenteb8dd814cb231f2cc6df58720bf567e0108dc114 (diff)
downloadyoyo-120d2252acae0b6152879fb2cff88e1d241b269c.tar.gz
tests: fix mysql backend returning stale data
-rw-r--r--yoyo/tests/test_cli_script.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/yoyo/tests/test_cli_script.py b/yoyo/tests/test_cli_script.py
index 65e785f..7d5ed11 100644
--- a/yoyo/tests/test_cli_script.py
+++ b/yoyo/tests/test_cli_script.py
@@ -236,6 +236,7 @@ class TestYoyoScript(TestInteractiveScript):
t.join()
# Exactly one instance of the migration script should have succeeded
+ backend.rollback()
cursor = backend.execute('SELECT COUNT(1) from _yoyo_t')
assert cursor.fetchone()[0] == 1