Skip to content

Commit 77acd25

Browse files
author
Sandro Santilli
committed
Request that notices are sent to client while testing them
See https://travis-ci.org/CartoDB/CartoDB-SQL-API/builds/14146134
1 parent 9389a04 commit 77acd25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/acceptance/app.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ test('notice and warning info in JSON output', function(done){
11421142
var next = this;
11431143
assert.response(app, {
11441144
url: '/api/v1/sql?' + querystring.stringify({
1145-
q: "select raise('notice', 'hello notice')"
1145+
q: "SET client_min_messages TO 'notice'; select raise('notice', 'hello notice')"
11461146
}),
11471147
headers: {host: 'vizzuality.cartodb.com'},
11481148
method: 'GET'
@@ -1163,7 +1163,7 @@ test('notice and warning info in JSON output', function(done){
11631163
var next = this;
11641164
assert.response(app, {
11651165
url: '/api/v1/sql?' + querystring.stringify({
1166-
q: "select raise('warning', 'hello warning')"
1166+
q: "SET client_min_messages TO 'notice'; select raise('warning', 'hello warning')"
11671167
}),
11681168
headers: {host: 'vizzuality.cartodb.com'},
11691169
method: 'GET'
@@ -1184,7 +1184,7 @@ test('notice and warning info in JSON output', function(done){
11841184
var next = this;
11851185
assert.response(app, {
11861186
url: '/api/v1/sql?' + querystring.stringify({
1187-
q: "select raise('warning', 'hello again warning'), raise('notice', 'hello again notice');"
1187+
q: "SET client_min_messages TO 'notice'; select raise('warning', 'hello again warning'), raise('notice', 'hello again notice');"
11881188
}),
11891189
headers: {host: 'vizzuality.cartodb.com'},
11901190
method: 'GET'

0 commit comments

Comments
 (0)