X-Press step 48 strange result

Please tell me why the following test results might be occuring.

Step 48 of X-Press requires students to: add a GET handler at / that will retrieve all existing issues of the specified series from the database… , [then] …run the testing suite to check your work.

When I include solution model code for step 53 in series.js
seriesRouter.delete(’/:seriesId’, (req, res, next) => {

the tests for step 48 pass with my code:

GET /api/series/:seriesId/issues
GET /api/series/2/issues 200 2.310 ms - 246
√ should return all issues of an existing series
GET /api/series/1/issues 200 1.355 ms - 13
√ should return an empty array for existing series with no issues
GET /api/series/2/issues 200 1.336 ms - 246
√ should return a status code of 200 for valid series
GET /api/series/999/issues 404 0.886 ms - 9
√ should return a status code of 404 for invalid series

When I omit the model code for step 53 , my tests for step 48 fail:

  1. GET /api/series/:seriesId/issues
    “before all” hook for “should return all issues of an existing series”:
    Uncaught Error: SQLITE_BUSY: database is locked

… which is puzzling

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.