Skip to content

Commit

Permalink
Fix bad file test fixture server
Browse files Browse the repository at this point in the history
  • Loading branch information
mdellweg committed Nov 19, 2024
1 parent be59e47 commit 363abc7
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 @@ -331,8 +331,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 363abc7

Please sign in to comment.