Skip to content

Commit

Permalink
stall should not happen if uploaded less amount of data then stall size
Browse files Browse the repository at this point in the history
  • Loading branch information
Tulsishah committed Oct 21, 2024
1 parent 97b0cb0 commit 8e195e4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testbench/rest_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,7 @@ def object_insert(bucket_name):
after_bytes,
test_id,
) = testbench.common.get_stall_uploads_after_bytes(db, request)

if stall_time:
if stall_time and len(request.data) >= after_bytes:
if test_id:
db.dequeue_next_instruction(test_id, "storage.objects.insert")
time.sleep(stall_time)
Expand Down

0 comments on commit 8e195e4

Please sign in to comment.