Skip to content

Commit

Permalink
OS-6309 test-alias.js: add more verbose test messages
Browse files Browse the repository at this point in the history
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Josh Wilsdon <josh@wilsdon.ca>
Approved by: Josh Wilsdon <josh@wilsdon.ca>
  • Loading branch information
bahamas10 authored and Dave Eddy committed Sep 21, 2017
1 parent da3973d commit aa87923
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vm/tests/test-alias.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2015 Joyent, Inc. All rights reserved.
// Copyright 2017 Joyent, Inc.
//
// Tests for VM.lookup()
//
Expand Down Expand Up @@ -81,7 +81,7 @@ function setAndCheckAlias(t, uuid, alias, base64, callback)
}, function (cb) {
// check that zonecfg value is correct
getZonecfgAlias(uuid, function _checkZonecfgAlias(err, zalias) {
t.equal(zalias, base64);
t.equal(zalias, base64, 'alias the same in zonecfg');
if (err) {
t.ok(false, 'failed to get alias from zonecfg: '
+ err.message);
Expand All @@ -98,7 +98,8 @@ function setAndCheckAlias(t, uuid, alias, base64, callback)
return;
}

t.equal((obj.alias == undefined) ? '' : obj.alias, alias);
t.equal((obj.alias == undefined) ? '' : obj.alias, alias,
'alias the same from VM.load');
cb();
});
}
Expand Down

0 comments on commit aa87923

Please sign in to comment.