Skip to content

Commit

Permalink
Fix Actor state test TTL exception check
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <[email protected]>
  • Loading branch information
JoshVanL committed Nov 14, 2023
1 parent f57b549 commit cd58e97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/Dapr.E2E.Test/Actors/E2ETests.StateTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ public async Task ActorCanSaveStateWithTTL()

await Task.Delay(TimeSpan.FromSeconds(2));

resp = await proxy.GetState("key");
Assert.Null(resp);
// Assert key no longer exists.
try {
await proxy.GetState("key");
Assert.True(false, "Expected exception");
} catch (Exception) { }

await proxy.SetState("key", "new-value", null);
resp = await proxy.GetState("key");
Expand Down

0 comments on commit cd58e97

Please sign in to comment.