fix bug in test
This commit is contained in:
parent
bfce448a96
commit
92e85bead3
|
@ -22,9 +22,9 @@ exports.DNS_TYPE_TXT = function (ab, packet, record) {
|
|||
// 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: '' });
|
||||
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
try {
|
||||
deepLike(expected, result);
|
||||
} catch(e) {
|
||||
console.log('[RESULT]');
|
||||
console.log(JSON.stringify(result, null, 2));
|
||||
console.error('[FAIL]', name);
|
||||
console.error(e.stack);
|
||||
console.log('');
|
||||
|
|
Loading…
Reference in New Issue