Skip to content

Commit d251498

Browse files
committed
test fix
1 parent 4b890f5 commit d251498

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

ManagedCode.Orleans.Graph.Tests/GraphTests.cs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,22 @@ await _testApp.Cluster
7474
.Client
7575
.GetGrain<IGrainA>("1")
7676
.MethodB1(1);
77+
78+
var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () =>
79+
{
80+
await _testApp.Cluster
81+
.Client
82+
.GetGrain<IGrainA>("1")
83+
.MethodC1(1);
84+
});
7785

78-
await _testApp.Cluster
79-
.Client
80-
.GetGrain<IGrainA>("1")
81-
.MethodC1(1);
86+
exception.Message
87+
.Should()
88+
.StartWith("Transition is not allowed.");
8289
}
8390

8491
[Fact]
85-
public async Task TestGrainTests()
92+
public async Task DeadLock_Tests()
8693
{
8794
await _testApp.Cluster
8895
.Client

0 commit comments

Comments
 (0)