source-aware playback statuses.
This commit is contained in:
@@ -162,7 +162,8 @@ func TestVideoWorkerStatusesInheritGeneration(t *testing.T) {
|
||||
func(error) bool { return true },
|
||||
func(status Status) { statuses = append(statuses, status) },
|
||||
)
|
||||
_ = worker.Run(withGeneration(context.Background(), 7), activeVideoConfig())
|
||||
config := activeVideoConfig()
|
||||
_ = worker.Run(withGeneration(context.Background(), 7), config)
|
||||
if len(statuses) == 0 {
|
||||
t.Fatal("no statuses emitted")
|
||||
}
|
||||
@@ -170,6 +171,9 @@ func TestVideoWorkerStatusesInheritGeneration(t *testing.T) {
|
||||
if status.Generation != 7 {
|
||||
t.Fatalf("status generation = %d, want 7: %+v", status.Generation, status)
|
||||
}
|
||||
if status.Feed != config {
|
||||
t.Fatalf("status feed = %#v, want %#v", status.Feed, config)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user