diff --git a/src/Foundatio.TestHarness/Queue/QueueTestBase.cs b/src/Foundatio.TestHarness/Queue/QueueTestBase.cs index d0baf10c..b8903106 100644 --- a/src/Foundatio.TestHarness/Queue/QueueTestBase.cs +++ b/src/Foundatio.TestHarness/Queue/QueueTestBase.cs @@ -1501,7 +1501,7 @@ public virtual async Task MaintainJobNotAbandon_NotWorkTimeOutEntry() Id = 2 }); - var dequeuedQueueItem = Assert.IsType>(await queue.DequeueAsync()); + var dequeuedQueueItem = Assert.IsAssignableFrom>(await queue.DequeueAsync()); Assert.NotNull(dequeuedQueueItem.Value); // The first dequeued item works for 60 milliseconds less than work timeout(100 milliseconds). await Task.Delay(60); @@ -1509,7 +1509,7 @@ public virtual async Task MaintainJobNotAbandon_NotWorkTimeOutEntry() Assert.True(dequeuedQueueItem.IsCompleted); Assert.False(dequeuedQueueItem.IsAbandoned); - dequeuedQueueItem = Assert.IsType>(await queue.DequeueAsync()); + dequeuedQueueItem = Assert.IsAssignableFrom>(await queue.DequeueAsync()); Assert.NotNull(dequeuedQueueItem.Value); // The second dequeued item works for 60 milliseconds less than work timeout(100 milliseconds). await Task.Delay(60);