TestReplay336 reads the bus call in its mesh form
The previous commit named the upgrade as a mesh call, and the replay still looked for the command-line words; it now asserts the seat and the upgrade, as any wording of the call says them.
This commit is contained in:
@@ -77,7 +77,7 @@ func TestReplay336(t *testing.T) {
|
|||||||
if len(got) != 1 {
|
if len(got) != 1 {
|
||||||
t.Fatalf("the first tick after the refusal told the operator nothing about the bus's step: %d condition(s)", len(got))
|
t.Fatalf("the first tick after the refusal told the operator nothing about the bus's step: %d condition(s)", len(got))
|
||||||
}
|
}
|
||||||
for _, want := range []string{"anchor", "engine", "bus upgrade", "32307bd1"} {
|
for _, want := range []string{"anchor", "engine", "mesh-controller.bus", "upgrade", "32307bd1"} {
|
||||||
if !strings.Contains(got[0].Summary, want) {
|
if !strings.Contains(got[0].Summary, want) {
|
||||||
t.Errorf("the condition does not say %q: %s", want, got[0].Summary)
|
t.Errorf("the condition does not say %q: %s", want, got[0].Summary)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user