[patches] [PATCH v2] Fix flaky test

Georgy Kirichenko georgy at tarantool.org
Tue Mar 6 10:34:49 MSK 2018


In most cases a tarantool yields on test_run connection and current
transactions rollback, but some times a tarantool console already has more
input to execute and select returns different results.

Fixed #3145

changes in v2:
  - Delete only a wrong select statement instead of a whole test

https://github.com/tarantool/tarantool/tree/gh-3145-flaky-test

 test/box/errinj.result   | 4 ----
 test/box/errinj.test.lua | 1 -
 2 files changed, 5 deletions(-)

diff --git a/test/box/errinj.result b/test/box/errinj.result
index 4ef7e887c..7ad31dd7a 100644
--- a/test/box/errinj.result
+++ b/test/box/errinj.result
@@ -454,10 +454,6 @@ errinj.set("ERRINJ_TUPLE_ALLOC", false);
 ---
 - ok
 ...
-s:select{};
----
-- []
-...
 box.rollback();
 ---
 ...
diff --git a/test/box/errinj.test.lua b/test/box/errinj.test.lua
index 992f6e2a9..9bcf53847 100644
--- a/test/box/errinj.test.lua
+++ b/test/box/errinj.test.lua
@@ -123,7 +123,6 @@ box.begin()
     s:insert{2}
 box.commit();
 errinj.set("ERRINJ_TUPLE_ALLOC", false);
-s:select{};
 box.rollback();
 s:select{};
 box.begin()
-- 
2.16.2




More information about the Tarantool-patches mailing list