dionjansen commented on a change in pull request #67: URL: https://github.com/apache/pulsar-dotpulsar/pull/67#discussion_r552892281
########## File path: tests/DotPulsar.Tests/Internal/MessageAcksTrackerTests.cs ########## @@ -0,0 +1,172 @@ +namespace DotPulsar.Tests.Internal +{ + using DotPulsar.Internal; + using DotPulsar.Abstractions; + using FluentAssertions; + using Xunit; + using System; + using AutoFixture; + using System.Threading; + using System.Threading.Tasks; + using System.Collections.Generic; + using System.Linq; + using System.Linq.Expressions; + using AutoFixture.AutoNSubstitute; + using NSubstitute; + using System.Diagnostics; + + public class UnackedMessageTrackerTests + { + [Fact] + public void Test_Instance() + { + var tracker = new UnackedMessageTracker(TimeSpan.FromSeconds(10), TimeSpan.FromSeconds(1)); + tracker.Should().BeOfType<UnackedMessageTracker>(); + } + + + [Fact] + public async void Test_AwaitingAck_Elapsed() + { + //Arrange + var messageId = MessageId.Latest; + var sw = new Stopwatch(); Review comment: Updated in b57668b ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org