fix bug in test

This commit is contained in:
AJ ONeal 2017-02-11 09:09:47 -07:00
parent bfce448a96
commit 92e85bead3
2 changed files with 5 additions and 3 deletions

View File

@ -22,9 +22,9 @@ exports.DNS_TYPE_TXT = function (ab, packet, record) {
// console.log("data at: " + i + " is: " + string); // console.log("data at: " + i + " is: " + string);
// //
record.data = unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name; record.data = [ unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name ];
var l = unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }); var l = unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' });

View File

@ -71,6 +71,8 @@
try { try {
deepLike(expected, result); deepLike(expected, result);
} catch(e) { } catch(e) {
console.log('[RESULT]');
console.log(JSON.stringify(result, null, 2));
console.error('[FAIL]', name); console.error('[FAIL]', name);
console.error(e.stack); console.error(e.stack);
console.log(''); console.log('');