mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chun-Hung Hsiao (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-8944) Get a callable object from `DROP_DISPATCH` so we can re-dispatch it.
Date Wed, 23 May 2018 01:17:00 GMT
Chun-Hung Hsiao created MESOS-8944:
--------------------------------------

             Summary: Get a callable object from `DROP_DISPATCH` so we can re-dispatch it.
                 Key: MESOS-8944
                 URL: https://issues.apache.org/jira/browse/MESOS-8944
             Project: Mesos
          Issue Type: Task
          Components: test
            Reporter: Chun-Hung Hsiao


If can get a callable object from {{DROP_DISPATCH}} (and maybe along with the target PID),
then we could write tests as follows:
{code}
Future<Callable> toDispatch = DROP_DISPATCH(pid, &Some::member_function);

AWAIT_READY(toDispatch);

// Validate some state changes that happen after the member function is enqueued
// but before it is executed.

Future<Nothing> dispatched = dispatch(pid, toDispatch.get());

AWAIT_READY(dispatched);

// Validate some state changes that happen after the member function is executed.
{code}

This will make it easier to write tests against actors that we cannot control their progress.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message