def METHOD_NAME(non_blocking_state, expected_return, monkeypatch, dummy_redis):
    """Test that states which don't alter the executing state of the query don't block."""
    state_machine = QueryStateMachine(dummy_redis, "DUMMY_QUERY_ID", get_db().conn_id)
    dummy_redis.set(state_machine.state_machine._name, non_blocking_state)
    monkeypatch.setattr(
        flowmachine.core.query_state, "_sleep", Mock(side_effect=BlockingIOError)
    )
    try:
        state_machine.wait_until_complete()
    except BlockingIOError:
        pytest.fail("Blocked!")