[Tarantool-patches] [PATCH 1/4] replication: run clear_synchro_queue() with unconfigured box

sergeyb at tarantool.org sergeyb at tarantool.org
Tue Nov 17 19:13:49 MSK 2020


From: Sergey Bronnikov <sergeyb at tarantool.org>

Part of #4849
---
 test/app-tap/cfg.test.lua | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/test/app-tap/cfg.test.lua b/test/app-tap/cfg.test.lua
index ba6b735ab..3d89a5167 100755
--- a/test/app-tap/cfg.test.lua
+++ b/test/app-tap/cfg.test.lua
@@ -3,7 +3,13 @@ local fiber = require('fiber')
 local tap = require('tap')
 local test = tap.test("cfg")
 
-test:plan(11)
+test:plan(12)
+
+--
+-- gh-4849: clear synchro queue is null with unconfigured box
+--
+local ok, err = pcall(box.ctl.clear_synchro_queue(), nil)
+test:isnil(ok, 'execute clear_synchro_queue with unconfigured box')
 
 --
 -- gh-4282: box.cfg should not allow nor just ignore nil UUID.
-- 
2.25.1



More information about the Tarantool-patches mailing list