From f1905d33b123e80be1eee3ac9e048d6ad502de89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 5 Jul 2018 17:53:27 +0300 Subject: [PATCH] Fix MaxCtrl `list servers` test The test did not expect GTIDs to be displayed. --- maxctrl/test/diagnostics.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/maxctrl/test/diagnostics.js b/maxctrl/test/diagnostics.js index e4abe7485..74f021b97 100644 --- a/maxctrl/test/diagnostics.js +++ b/maxctrl/test/diagnostics.js @@ -52,7 +52,12 @@ describe("MXS-1656: `list servers` with GTIDs", function() { // empty strings. This is because the test setup uses file and position based // replication. res = res.split('\n').map(i => i.split('\t')).map(i => i[5]) - _.uniq(res).should.deep.equal(['']) + var pos = _.uniq(res)[0] + if (pos.length) { + pos.should.match(/[0-9]*-[0-9]*-[0-9]*/) + } else { + pos.should.equal('') + } }) }