Merge pull request #1903 from roramirez/not-log-error-vendor-test

Revert error logging introduced in 1e97b5c
This commit is contained in:
Michael Teeuw 2020-01-26 16:46:06 +01:00 committed by GitHub
commit 5a26fefd6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,10 +32,7 @@ describe("Vendors", function () {
it(`should return 200 HTTP code for vendor "${vendor}"`, function () { it(`should return 200 HTTP code for vendor "${vendor}"`, function () {
urlVendor = "http://localhost:8080/vendor/" + vendors[vendor]; urlVendor = "http://localhost:8080/vendor/" + vendors[vendor];
request.get(urlVendor, function (err, res, body) { request.get(urlVendor, function (err, res, body) {
if (!err) expect(res.statusCode).to.equal(200);
{expect(res.statusCode).to.equal(200);}
else
{mlog.pending(`There error vendor 200 test ${err}`);}
}); });
}); });
}); });
@ -44,10 +41,7 @@ describe("Vendors", function () {
it(`should return 404 HTTP code for vendor https://localhost/"${vendor}"`, function() { it(`should return 404 HTTP code for vendor https://localhost/"${vendor}"`, function() {
urlVendor = "http://localhost:8080/" + vendors[vendor]; urlVendor = "http://localhost:8080/" + vendors[vendor];
request.get(urlVendor, function (err, res, body) { request.get(urlVendor, function (err, res, body) {
if (!err) expect(res.statusCode).to.equal(404);
{expect(res.statusCode).to.equal(404);}
else
{mlog.pending(`There error vendor 404 test ${err}`);}
}); });
}); });
}); });