Skip to content

Commit

Permalink
fix: test case bug on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Dec 6, 2019
1 parent b359ac8 commit f124598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/cases/http-pipe-file-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = async function (port) {
if (res.status !== 200) {
throw new Error(`Response ${res.status}`)
}
if (res.data !== 'TEST\n') {
if (!res.data.startsWith('TEST')) {
throw new Error('Response data mismatch')
}
}
2 changes: 1 addition & 1 deletion test/cases/http-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = async function (port) {
if (res.status !== 200) {
throw new Error(`Response ${res.status}`)
}
if (res.data !== 'TEST\n') {
if (!res.data.startsWith('TEST')) {
throw new Error('Response data mismatch')
}
if (!res.headers['last-modified']) {
Expand Down

0 comments on commit f124598

Please sign in to comment.