mirror of https://github.com/actions/toolkit
push null at end of mocked message
parent
4c531c013a
commit
09249a72d7
|
@ -104,6 +104,7 @@ const mockGetArtifactSuccess = jest.fn(() => {
|
|||
const message = new http.IncomingMessage(new net.Socket())
|
||||
message.statusCode = 200
|
||||
message.push(fs.readFileSync(fixtures.exampleArtifact.path))
|
||||
message.push(null)
|
||||
return {
|
||||
message
|
||||
}
|
||||
|
@ -113,6 +114,7 @@ const mockGetArtifactFailure = jest.fn(() => {
|
|||
const message = new http.IncomingMessage(new net.Socket())
|
||||
message.statusCode = 500
|
||||
message.push('Internal Server Error')
|
||||
message.push(null)
|
||||
return {
|
||||
message
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue