We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eee12a commit 9c8e24aCopy full SHA for 9c8e24a
test/Dapr.Actors.Test/Runtime/ActorRuntimeTests.cs
@@ -146,13 +146,8 @@ public async Task TestActorSettings()
146
element = root.GetProperty("drainRebalancedActors");
147
Assert.True(element.GetBoolean());
148
149
- try {
150
- element = root.GetProperty("remindersStoragePartitions");
151
- Assert.False(true, "remindersStoragePartitions should not be serialized");
152
- }
153
- catch (Exception ex) {
154
- Assert.IsType<KeyNotFoundException>(ex);
155
+ bool found = root.TryGetProperty("remindersStoragePartitions", out element);
+ Assert.False(found, "remindersStoragePartitions should not be serialized");
156
157
}
158
0 commit comments