Skip to content

Commit

Permalink
SegmentDiscovery test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ikopylov committed Apr 21, 2017
1 parent 27f560c commit d53312c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Qoollo.Turbo.UnitTests/Queues/DiskQueueTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -723,12 +723,13 @@ public void SegmentDiscoveryTest()

using (var queue = new DiskQueue<int>("dummy", segmentFactory, -1, false))
{
Assert.AreEqual(2, queue.SegmentCount);
Assert.AreEqual(3, queue.SegmentCount);
Assert.AreEqual(3, segmentFactory.AllocatedSegments.Count);

for (int i = 0; i < segmentFactory.Capacity * 2; i++)
Assert.AreEqual(i, queue.Take());

Assert.AreEqual(1, queue.SegmentCount);
Assert.AreEqual(2, queue.SegmentCount);
}
}

Expand Down

0 comments on commit d53312c

Please sign in to comment.