fix(monitor): hold conflicting terminal coordinates
This commit is contained in:
@@ -317,7 +317,7 @@ func TestJT808LocationArbitrationGuardsJumpsAndSourceFlapping(t *testing.T) {
|
||||
t.Fatalf("JT808 source guard missing %q: %s", want, upsertJT808RealtimeLocationSourceSQL)
|
||||
}
|
||||
}
|
||||
for _, want := range []string{"vehicle_location_source_policy", "cur.source_key = s.source_key", "consecutive_good_samples < 3", "INTERVAL 2 MINUTE", "> 200"} {
|
||||
for _, want := range []string{"vehicle_location_source_policy", "cur.source_key = s.source_key", "consecutive_good_samples < 3", "INTERVAL 2 MINUTE", "> 200", "THEN -10000", "updated_at = VALUES(updated_at)"} {
|
||||
if !strings.Contains(electJT808RealtimeLocationSQL, want) {
|
||||
t.Fatalf("JT808 canonical election missing %q: %s", want, electJT808RealtimeLocationSQL)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user