This repository has been archived on 2019-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
mumbledj/commands/addnext_test.go
Jason Waataja caf2003d96 Fix addnext failing on an empty queue
Previously, addnext would try to unconditionally add at index one into a
queue. This panicked if the queue was empty. Added two protections, one
that checks the index in the InsertTrack function, the other in the
addnext command itself to insert at zero if the queue is empty.
2018-07-20 17:49:10 -07:00

11 lines
218 B
Go

/*
* MumbleDJ
* By Matthieu Grieger
* Copyright (c) 2016 Matthieu Grieger (MIT License)
* commands/addnext_test.go
*/
package commands
// TODO: Add regression test for bug where addnext fails on an empty queue.