Skip to content

Commit c0f83c9

Browse files
authored
Improve mailbox scheduling test assertion (#2191)
1 parent 0f32e6e commit c0f83c9

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/Proto.Actor.Tests/Mailbox/MailboxSchedulingTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ public async Task GivenNonCompletedUserMessage_ShouldSetMailboxToIdleAfterComple
127127
msg1.TaskCompletionSource.SetResult(0);
128128
await Task.Delay(1000);
129129

130-
Assert.True(mailbox.Status == MailboxStatus.Idle,
131-
"Mailbox should be set back to Idle after completion of message."
132-
);
130+
Assert.Equal(MailboxStatus.Idle, mailbox.Status);
133131
}
134-
}
132+
}

0 commit comments

Comments
 (0)