Skip to content

Commit

Permalink
Merge pull request #163 from flowforge/snapshot-timeout
Browse files Browse the repository at this point in the history
Increase snapshot download timeout
  • Loading branch information
Steve-Mcl authored Aug 25, 2023
2 parents d09466e + 2e3e70c commit 6258139
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class HTTPClient {

async getSnapshot () {
try {
return await this.client.get('live/snapshot').json()
return await this.client.get('live/snapshot', { timeout: { request: 30000 } }).json()
} catch (err) {
warn(`Problem getting snapshot: ${err.toString()}`)
debug(err)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/frontend/routes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Device Agent Web Server Routes (API)', function () {
let configDir

const got = Got.extend({
prefixUrl: 'http://localhost:1879',
prefixUrl: 'http://127.0.0.1:1879',
throwHttpErrors: false
})

Expand Down

0 comments on commit 6258139

Please sign in to comment.