Skip to content

Commit 9c8e24a

Browse files
berndverstrynowak
authored andcommitted
address code review
1 parent 8eee12a commit 9c8e24a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/Dapr.Actors.Test/Runtime/ActorRuntimeTests.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,8 @@ public async Task TestActorSettings()
146146
element = root.GetProperty("drainRebalancedActors");
147147
Assert.True(element.GetBoolean());
148148

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-
}
149+
bool found = root.TryGetProperty("remindersStoragePartitions", out element);
150+
Assert.False(found, "remindersStoragePartitions should not be serialized");
156151

157152
}
158153

0 commit comments

Comments
 (0)