diff --git a/test/fixture/pack.tar.gz b/test/fixture/pack.tar.gz index 9cf8925a..33e11c93 100644 Binary files a/test/fixture/pack.tar.gz and b/test/fixture/pack.tar.gz differ diff --git a/test/rest/pack.js b/test/rest/pack.js index 0a368079..1c33aa02 100644 --- a/test/rest/pack.js +++ b/test/rest/pack.js @@ -36,7 +36,7 @@ test('cloudcmd: rest: pack: tar: get', (t) => { get(`http://localhost:${port}/api/v1/pack/fixture/pack`) .then(_pullout) .then((pack) => { - t.ok(fixture.tar.compare(pack), 'should pack data'); + t.equal(fixture.tar.length, pack.length, 'should pack data'); t.end(); after(); }) @@ -58,7 +58,7 @@ test('cloudcmd: rest: pack: tar: put: file', (t) => { const file = fs.readFileSync(__dirname + '/../' + name); fs.unlinkSync(`${__dirname}/../${name}`); - t.ok(fixture.tar.compare(file), 'should create archive'); + t.ok(fixture.tar.equals(file), 'should create archive'); t.end(); after(); @@ -118,7 +118,7 @@ test('cloudcmd: rest: pack: zip: get', (t) => { get(`http://localhost:${port}/api/v1/pack/fixture/pack`) .then(_pullout) .then((pack) => { - t.ok(fixture.zip.compare(pack), 'should pack data'); + t.equal(pack.length, fixture.zip.length, 'should pack data'); t.end(); after(); }) @@ -140,7 +140,7 @@ test('cloudcmd: rest: pack: zip: put: file', (t) => { const file = fs.readFileSync(__dirname + '/../' + name); fs.unlinkSync(`${__dirname}/../${name}`); - t.ok(fixture.zip.compare(file), 'should create archive'); + t.equal(fixture.zip.length, file.length, 'should create archive'); t.end(); after();