TRITON-324 node-triton cli-affinity.test.js failures: create timeout, .end() called twice

Reviewed by: Pedro P. Candel <pedro@joyent.com>
Approved by: Pedro P. Candel <pedro@joyent.com>
This commit is contained in:
Marsell Kukuljevic 2018-04-23 23:48:02 +12:00
parent 0bc11c1e33
commit 3584c82e05

View File

@ -110,7 +110,8 @@ test('affinity (triton create -a RULE ...)', testOpts, function (tt) {
var db2Alias = ALIAS_PREFIX + '-db2';
var db2;
tt.test(' triton create -n db2 -a \'instance!=db*\'', function (t) {
var argv = ['create', '-wj', '-n', db2Alias, '-a', 'instance!=db*',
var argv = ['create', '-wj', '-n', db2Alias, '-a',
'instance!=' + ALIAS_PREFIX + '-db*',
imgId, pkgId];
h.safeTriton(t, argv, function (err, stdout) {
var lines = h.jsonStreamParse(stdout);