Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fabo/159 mock timeout #227

Merged
merged 4 commits into from
Dec 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions app/src/main/mockServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ let randomCandidate = () => ({
module.exports = function (port = 8999) {
let app = express()

// TODO this lets the server timeout until there is an external request
// log all requests
app.use((req, res, next) => {
console.log('REST request:', req.method, req.originalUrl, req.body)
next()
})
// app.use((req, res, next) => {
// console.log('REST request:', req.method, req.originalUrl, req.body)
// next()
// })

// delegation mock API
let candidates = new Array(50).fill(0).map(randomPubkey)
Expand Down
2 changes: 2 additions & 0 deletions tasks/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ let skipPack = false
let binaryPath = null
process.argv.forEach(function (val) {
if (val === '--skip-pack') {
console.log('Skipping packaging')
skipPack = true
}
if (val.startsWith('--binary')) {
binaryPath = val.replace('--binary=', '')
console.log('Using build binary', binaryPath)
}
})

Expand Down