Skipping now working(?)

This commit is contained in:
Deluan
2016-03-28 17:51:10 -04:00
parent 1e17efc729
commit c8184da0ed
2 changed files with 41 additions and 16 deletions
+11 -1
View File
@@ -109,7 +109,17 @@ func TestSkipping(t *testing.T) {
So(err, ShouldBeNil)
})
})
SkipConvey("And I skip it after 20 seconds", func() {
Convey("And I skip it after 5 seconds", func() {
npRepo.OverrideNow(start.Add(time.Duration(3) * time.Second))
scrobbler.NowPlaying(1, "DSub", "2", "deluan")
Convey("Then the first song should be marked as skipped", func() {
mf, err := scrobbler.Register(1, "2", start.Add(time.Duration(3)*time.Minute))
So(mf.Id, ShouldEqual, "2")
So(itCtrl.skipped, ShouldBeEmpty)
So(err, ShouldBeNil)
})
})
Convey("And I skip it after 20 seconds", func() {
npRepo.OverrideNow(start.Add(time.Duration(30) * time.Second))
scrobbler.NowPlaying(1, "DSub", "2", "deluan")
Convey("Then the first song should be marked as skipped", func() {