You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const server = require("../../server/server");
const supertest = require('supertest');
const upr = require('supertest')(server);
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";//No CA for our certs.
...
upr
.post(apiPathInfo)
.set('Accept', 'application/json')
.send(requestBody)
.end(function (err, res) {
if (err) {
return done(err);
}
res.statusCode.should.be.equal(201);
done();
There is a bug in cache.js. If chunk on line 145 is a object with properties, the next call return new Buffer(chunk) will fail. You can test for json and fix it with
If you do, it exposes another bug - now the body of requests are showing as "body": {},
instead of having content (so the actual calls fail, even if they are not in the cache). Turning off replayer shows the calls completing normally.
The text was updated successfully, but these errors were encountered:
Doing:
There is a bug in cache.js. If chunk on line 145 is a object with properties, the next call return new Buffer(chunk) will fail. You can test for json and fix it with
If you do, it exposes another bug - now the body of requests are showing as "body": {},
instead of having content (so the actual calls fail, even if they are not in the cache). Turning off replayer shows the calls completing normally.
The text was updated successfully, but these errors were encountered: