Skip to content

Commit

Permalink
Fix bad file test fixture server
Browse files Browse the repository at this point in the history
(cherry picked from commit 692d0a8)
(cherry picked from commit 91305a4)
  • Loading branch information
mdellweg authored and patchback[bot] committed Jan 9, 2025
1 parent dd24d6e commit 574f09d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pulp_file/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,10 @@ async def handler(request):
chunk2 = await f.read()
await response.write(chunk2[:-1])
await response.write(bytes([chunk2[-1] ^ 1]))
else:
request.transport.close()

await response.write_eof()
return response

app = web.Application()
app.add_routes([web.get("/{tail:.*}", handler)])
Expand Down

0 comments on commit 574f09d

Please sign in to comment.