remove console.log
This commit is contained in:
parent
3abdee5e87
commit
16468b1216
@ -174,7 +174,6 @@ suite(suiteName, function() {
|
|||||||
var errors = [];
|
var errors = [];
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
errors.push(err.message);
|
errors.push(err.message);
|
||||||
console.log("Error: " + err);
|
|
||||||
}
|
}
|
||||||
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
@ -278,7 +277,6 @@ suite(suiteName, function() {
|
|||||||
var errors = [];
|
var errors = [];
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
errors.push(err.message);
|
errors.push(err.message);
|
||||||
console.log("Error: " + err);
|
|
||||||
}
|
}
|
||||||
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
@ -500,7 +498,6 @@ suite(suiteName, function() {
|
|||||||
var errors = [];
|
var errors = [];
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
errors.push(err.message);
|
errors.push(err.message);
|
||||||
console.log("Error: " + err);
|
|
||||||
}
|
}
|
||||||
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
@ -831,7 +828,6 @@ suite(suiteName, function() {
|
|||||||
var errors = [];
|
var errors = [];
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
errors.push(err.message);
|
errors.push(err.message);
|
||||||
console.log("Error: " + err);
|
|
||||||
}
|
}
|
||||||
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
@ -950,7 +946,6 @@ suite(suiteName, function() {
|
|||||||
var errors = [];
|
var errors = [];
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
errors.push(err.message);
|
errors.push(err.message);
|
||||||
console.log("Error: " + err);
|
|
||||||
}
|
}
|
||||||
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
@ -1114,7 +1109,6 @@ suite(suiteName, function() {
|
|||||||
var errors = [];
|
var errors = [];
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
errors.push(err.message);
|
errors.push(err.message);
|
||||||
console.log("Error: " + err);
|
|
||||||
}
|
}
|
||||||
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
redis_client.keys("map_cfg|" + expected_token, function(err, matches) {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
@ -1219,7 +1213,6 @@ suite(suiteName, function() {
|
|||||||
function finish(err) {
|
function finish(err) {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
errors.push(err.message);
|
errors.push(err.message);
|
||||||
console.log("Error: " + err);
|
|
||||||
}
|
}
|
||||||
if ( errors.length ) {
|
if ( errors.length ) {
|
||||||
done(new Error(errors));
|
done(new Error(errors));
|
||||||
|
@ -41,7 +41,6 @@ describe('multilayer', function() {
|
|||||||
fs.readFile(filename, "binary", function(err, file) {
|
fs.readFile(filename, "binary", function(err, file) {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
response.writeHead(404, {'Content-Type': 'text/plain'});
|
response.writeHead(404, {'Content-Type': 'text/plain'});
|
||||||
console.log("File '" + filename + "' not found");
|
|
||||||
response.write("404 Not Found\n");
|
response.write("404 Not Found\n");
|
||||||
} else {
|
} else {
|
||||||
response.writeHead(200);
|
response.writeHead(200);
|
||||||
@ -499,7 +498,6 @@ describe('multilayer', function() {
|
|||||||
},
|
},
|
||||||
function do_get_tile(err)
|
function do_get_tile(err)
|
||||||
{
|
{
|
||||||
console.log(err);
|
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
var next = this;
|
var next = this;
|
||||||
assert.response(server, {
|
assert.response(server, {
|
||||||
@ -742,7 +740,6 @@ describe('multilayer', function() {
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
function finish(err) {
|
function finish(err) {
|
||||||
//if ( err ) console.log(err.stack);
|
|
||||||
var errors = [];
|
var errors = [];
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
errors.push(''+err);
|
errors.push(''+err);
|
||||||
|
@ -201,10 +201,8 @@ describe('server_gettile', function() {
|
|||||||
};
|
};
|
||||||
var test_strict_lbl = "unused directives are not tolerated if strict";
|
var test_strict_lbl = "unused directives are not tolerated if strict";
|
||||||
if ( semver.satisfies(mapnik.versions.mapnik, '2.3.x') ) {
|
if ( semver.satisfies(mapnik.versions.mapnik, '2.3.x') ) {
|
||||||
// Strictness handling changed in 2.3.x, possibly a bug:
|
// Strictness handling changed in 2.3.x, possibly a bug: see http://github.com/mapnik/mapnik/issues/2301
|
||||||
// see http://github.com/mapnik/mapnik/issues/2301
|
it.skip('[skipped due to http://github.com/mapnik/mapnik/issues/2301]' + test_strict_lbl, test_strictness);
|
||||||
console.warn("Strictness test skipped due to http://github.com/mapnik/mapnik/issues/2301");
|
|
||||||
it.skip(test_strict_lbl, test_strictness);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
it(test_strict_lbl, test_strictness);
|
it(test_strict_lbl, test_strictness);
|
||||||
|
@ -61,7 +61,6 @@ suite('req2params', function() {
|
|||||||
var req = {headers: { host:'localhost' }, query: {} };
|
var req = {headers: { host:'localhost' }, query: {} };
|
||||||
baseController.req2params(prepareRequest(req), function(err, req) {
|
baseController.req2params(prepareRequest(req), function(err, req) {
|
||||||
if ( err ) { done(err); return; }
|
if ( err ) { done(err); return; }
|
||||||
//console.dir(req);
|
|
||||||
assert.ok(_.isObject(req.query), 'request has query');
|
assert.ok(_.isObject(req.query), 'request has query');
|
||||||
assert.ok(!req.query.hasOwnProperty('dbuser'), 'dbuser was removed from query');
|
assert.ok(!req.query.hasOwnProperty('dbuser'), 'dbuser was removed from query');
|
||||||
assert.ok(req.hasOwnProperty('params'), 'request has params');
|
assert.ok(req.hasOwnProperty('params'), 'request has params');
|
||||||
@ -76,7 +75,6 @@ suite('req2params', function() {
|
|||||||
var req = {headers: { host:'localhost' }, query: {map_key: '1234'} };
|
var req = {headers: { host:'localhost' }, query: {map_key: '1234'} };
|
||||||
baseController.req2params(prepareRequest(req), function(err, req) {
|
baseController.req2params(prepareRequest(req), function(err, req) {
|
||||||
if ( err ) { done(err); return; }
|
if ( err ) { done(err); return; }
|
||||||
//console.dir(req);
|
|
||||||
assert.ok(_.isObject(req.query), 'request has query');
|
assert.ok(_.isObject(req.query), 'request has query');
|
||||||
assert.ok(!req.query.hasOwnProperty('dbuser'), 'dbuser was removed from query');
|
assert.ok(!req.query.hasOwnProperty('dbuser'), 'dbuser was removed from query');
|
||||||
assert.ok(req.hasOwnProperty('params'), 'request has params');
|
assert.ok(req.hasOwnProperty('params'), 'request has params');
|
||||||
|
Loading…
Reference in New Issue
Block a user