Fixing build errors
This commit is contained in:
parent
2bb84599ea
commit
1d1c3e08f2
13
test.go
13
test.go
|
@ -1,6 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"github.com/layeh/gumble/gumble"
|
"github.com/layeh/gumble/gumble"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -35,17 +36,9 @@ func testYoutubeSong(password, ip, port string) {
|
||||||
for url, title := range songs {
|
for url, title := range songs {
|
||||||
err := add(dummyUser, url)
|
err := add(dummyUser, url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Error(
|
fmt.Printf("For: %s; Expected: %s; Got: %s", url, title, err.Error())
|
||||||
"For", url,
|
|
||||||
"expected", title,
|
|
||||||
"got", err,
|
|
||||||
)
|
|
||||||
} else if dj.queue.CurrentSong().Title() != title {
|
} else if dj.queue.CurrentSong().Title() != title {
|
||||||
t.Error(
|
fmt.Printf("For: %s; Expected: %s; Got: %s", url, title, dj.queue.CurrentSong().Title())
|
||||||
"For", url,
|
|
||||||
"expected", title,
|
|
||||||
"got", dj.queue.CurrentSong().Title(),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
skip(dummyUser, false, false)
|
skip(dummyUser, false, false)
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue