Request that notices are sent to client while testing them

See https://travis-ci.org/CartoDB/CartoDB-SQL-API/builds/14146134
This commit is contained in:
Sandro Santilli 2013-11-18 17:09:27 +01:00
parent 9389a04030
commit 77acd2567e

View File

@ -1142,7 +1142,7 @@ test('notice and warning info in JSON output', function(done){
var next = this;
assert.response(app, {
url: '/api/v1/sql?' + querystring.stringify({
q: "select raise('notice', 'hello notice')"
q: "SET client_min_messages TO 'notice'; select raise('notice', 'hello notice')"
}),
headers: {host: 'vizzuality.cartodb.com'},
method: 'GET'
@ -1163,7 +1163,7 @@ test('notice and warning info in JSON output', function(done){
var next = this;
assert.response(app, {
url: '/api/v1/sql?' + querystring.stringify({
q: "select raise('warning', 'hello warning')"
q: "SET client_min_messages TO 'notice'; select raise('warning', 'hello warning')"
}),
headers: {host: 'vizzuality.cartodb.com'},
method: 'GET'
@ -1184,7 +1184,7 @@ test('notice and warning info in JSON output', function(done){
var next = this;
assert.response(app, {
url: '/api/v1/sql?' + querystring.stringify({
q: "select raise('warning', 'hello again warning'), raise('notice', 'hello again notice');"
q: "SET client_min_messages TO 'notice'; select raise('warning', 'hello again warning'), raise('notice', 'hello again notice');"
}),
headers: {host: 'vizzuality.cartodb.com'},
method: 'GET'