Skip to content

Timeouts not working for exports #521

@rafatower

Description

@rafatower

At lest the tests do not pass when I run against pgbouncer.

Steps to reproduce

  1. Run pgbouncer listening on port 6432.
  2. Modify the config/environments/test.js to set module.exports.db_port = '6432';
  3. Apply the patch in Allow tests to be executed against pgbouncer #520 because otherwise the tests die in the setup phase (explained there).
  4. Execute the tests like this:
$ make test 2>&1 | tee /tmp/test.out

cause at some point the diffs display the bodies containing SHP and other binary formats, which screw my terminal output, so that way I could inspect the /tmp/test.out file.

Expected result

All the tests pass.

Actual result

Here's an excerpt of the results I got:

  415 passing (38s)
  13 pending
  9 failing

  1) timeout export database Geopackage export exceeding statement timeout responds 429 Over Limits:

      Uncaught AssertionError: Invalid response status code.
     Expected: 429
     Got: 200
     Body: SQLite format [...]

  2) timeout export database KML export exceeding statement timeout responds 429 Over Limits:

      Uncaught AssertionError: Invalid response status code.
     Expected: 429
     Got: 200
     Body: <?xml version="1.0" encoding="utf-8" ?> [...]

  3) timeout export database Shapefile export exceeding statement timeout responds 429 Over Limits:

      Uncaught AssertionError: Invalid response status code.
     Expected: 429
     Got: 200
     Body: [...]

(all the failures are related to exports)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions