Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
slorello89 committed Oct 21, 2024
1 parent 46b456f commit d64d149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Redis.OM.Unit.Tests/CoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public async Task ExpireFractionalMillisecondAsync()
var jsonObjWithExpire = new BasicJsonObject { Name = "JsonWithExpire" };
var key = await connection.SetAsync(jsonObjWithExpire, TimeSpan.FromMilliseconds(5000.5));
var ttl = (long)await connection.ExecuteAsync("PTTL", key);
Assert.True(ttl <= 5000.5);
Assert.True(ttl <= 5001);
Assert.True(ttl >= 1000);
}

Expand Down

0 comments on commit d64d149

Please sign in to comment.