architecture cleanup
This commit is contained in:
@@ -104,10 +104,10 @@ func TestNewPlayerPlaylistWiresComponents(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("newPlayerPlaylist() error = %v", err)
|
||||
}
|
||||
if runtime.Controller == nil || runtime.Coordinator == nil {
|
||||
if runtime.Controller == nil || runtime.coordinator == nil {
|
||||
t.Fatalf("runtime components = %#v", runtime)
|
||||
}
|
||||
if runtime.Commands == nil || runtime.Readiness == nil {
|
||||
if runtime.commands == nil || runtime.events == nil {
|
||||
t.Fatalf("runtime channels = %#v", runtime)
|
||||
}
|
||||
}
|
||||
@@ -135,7 +135,7 @@ func TestPlayerPlaylistNavigationHelpers(t *testing.T) {
|
||||
if !test.send() {
|
||||
t.Fatal("navigation helper returned false")
|
||||
}
|
||||
if got := <-runtime.Commands; got != test.want {
|
||||
if got := <-runtime.commands; got != test.want {
|
||||
t.Fatalf("navigation command = %#v, want %#v", got, test.want)
|
||||
}
|
||||
}
|
||||
@@ -150,7 +150,7 @@ func TestPlayerPlaylistNavigationQueueFull(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("newPlayerPlaylist() error = %v", err)
|
||||
}
|
||||
for range cap(runtime.Commands) {
|
||||
for range cap(runtime.commands) {
|
||||
if !runtime.Next() {
|
||||
t.Fatal("queue filled before reaching capacity")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user