Fix MaxCtrl list servers test

The test did not expect GTIDs to be displayed.
This commit is contained in:
Markus Mäkelä 2018-07-05 17:53:27 +03:00
parent a11d83679e
commit f1905d33b1
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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('')
}
})
}