summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-12-13 08:36:42 +0100
committerMax Kellermann <max@musicpd.org>2016-12-13 08:36:42 +0100
commitc2da6dd45b17e6bf31cd2590769f48a76ed9f683 (patch)
treeae9bf93ba1321d45971d9f861e8d830c04b39707 /test
parent7146f825b279b6882b5372d7a5bec38d69848259 (diff)
test/test_queue_priority: fix unit test failure after recent "setprio" change
Diffstat (limited to 'test')
-rw-r--r--test/test_queue_priority.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/test/test_queue_priority.cxx b/test/test_queue_priority.cxx
index 517cb028c..171585dec 100644
--- a/test/test_queue_priority.cxx
+++ b/test/test_queue_priority.cxx
@@ -164,21 +164,6 @@ QueuePriorityTest::TestPriority()
check_descending_priority(&queue, current_order + 1);
- /* priority=60 for the old prio50 item; must not be moved,
- because it's before the current song, and it's status
- hasn't changed (it was already higher before) */
-
- unsigned c_order = 0;
- unsigned c_position = queue.OrderToPosition(c_order);
- CPPUNIT_ASSERT_EQUAL(50u, unsigned(queue.items[c_position].priority));
- queue.SetPriority(c_position, 60, current_order);
-
- current_order = queue.PositionToOrder(current_position);
- CPPUNIT_ASSERT_EQUAL(3u, current_order);
-
- c_order = queue.PositionToOrder(c_position);
- CPPUNIT_ASSERT_EQUAL(0u, c_order);
-
/* move the prio=20 item back */
a_order = queue.PositionToOrder(a_position);