Skip to content

Commit

Permalink
Fixing Can_BlockingDequeueItemFromList Test
Browse files Browse the repository at this point in the history
Use EnqueueItemOnList instead of AddItemToList if working with Dequeue*,
since these methods work on the list in opposite directions.
  • Loading branch information
dcartoon committed May 26, 2013
1 parent 0bee8be commit 2bbfa1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ public void Can_PopFromList()
public void Can_BlockingDequeueItemFromList()
{
var storeMembers = Factory.CreateList();
storeMembers.ForEach(x => redis.AddItemToList(List, x));

storeMembers.ForEach(x => redis.EnqueueItemOnList(List, x));
var item1 = redis.BlockingDequeueItemFromList(List, new TimeSpan(0, 0, 1));

Factory.AssertIsEqual(item1, (T)storeMembers.First());
Expand Down

0 comments on commit 2bbfa1a

Please sign in to comment.