Skip to content

Test delayed data streaming #109

@tir38

Description

@tir38

I have a PUT request that slowly streams bytes to a server. Internal to this call I track total bytes uploaded. I now want to write a test asserting that X bytes were uploaded. To do this I mostly need to keep RESTMock from immediately returning 200. It should let me write some bytes and only later return a response code. IIUC from other issues, .delay() operator only delays the response body, not the response code. Is there any way to change this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions