Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ public void basic_send_recv() throws Exception {

String result = (String) handle1.getResult();
assertEquals("HelloDBOS", result);
// The receiver can finish as soon as the send step commits, before the sender records SUCCESS.
handle2.getResult();

assertEquals(WorkflowState.SUCCESS, handle1.getStatus().status());
assertEquals(WorkflowState.SUCCESS, handle2.getStatus().status());
Expand Down Expand Up @@ -271,6 +273,8 @@ public void notopic() throws Exception {

String result = (String) handle1.getResult();
assertEquals("HelloDBOS", result);
// The receiver can finish as soon as the send step commits, before the sender records SUCCESS.
handle2.getResult();

assertEquals(WorkflowState.SUCCESS, handle1.getStatus().status());
assertEquals(WorkflowState.SUCCESS, handle2.getStatus().status());
Expand Down Expand Up @@ -333,6 +337,8 @@ public void sendNull() throws Exception {

String result = (String) handle1.getResult();
assertNull(result);
// The receiver can finish as soon as the send step commits, before the sender records SUCCESS.
handle2.getResult();

assertEquals(WorkflowState.SUCCESS, handle1.getStatus().status());
assertEquals(WorkflowState.SUCCESS, handle2.getStatus().status());
Expand Down Expand Up @@ -422,6 +428,8 @@ public void recvSleep() throws Exception {

String result = (String) handle1.getResult();
assertEquals("HelloDBOS", result);
// The receiver can finish as soon as the send step commits, before the sender records SUCCESS.
handle2.getResult();

assertEquals(WorkflowState.SUCCESS, handle1.getStatus().status());
assertEquals(WorkflowState.SUCCESS, handle2.getStatus().status());
Expand Down
Loading