mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
@@ -38,9 +38,9 @@ defmodule TeslaMate.Vehicles.Vehicle.ChargingSyncTest do
|
||||
|
||||
refute_receive _
|
||||
end) =~
|
||||
"""
|
||||
[warn] Invalid charge data: %{ideal_battery_range_km: [\"can't be blank\"]}
|
||||
[warn] Invalid charge data: %{ideal_battery_range_km: [\"can't be blank\"]}
|
||||
~r"""
|
||||
\[warn.*\] Invalid charge data: %{ideal_battery_range_km: \[\"can't be blank\"\]}
|
||||
\[warn.*\] Invalid charge data: %{ideal_battery_range_km: \[\"can't be blank\"\]}
|
||||
"""
|
||||
end
|
||||
|
||||
|
||||
@@ -189,7 +189,7 @@ defmodule TeslaMate.Vehicles.Vehicle.ChargingTest do
|
||||
assert capture_log(@log_opts, fn ->
|
||||
assert_receive {:insert_charge, ^cproc, %{date: _, charge_energy_added: 0.3}}
|
||||
assert_receive {:pubsub, {:broadcast, _, _, %Summary{state: :charging}}}
|
||||
end) =~ "[warn] Discarded incomplete fetch result"
|
||||
end) =~ "Discarded incomplete fetch result"
|
||||
|
||||
assert_receive {:insert_position, ^car, %{}}
|
||||
assert_receive {:insert_charge, ^cproc, %{date: _, charge_energy_added: 0.3}}
|
||||
|
||||
@@ -234,7 +234,7 @@ defmodule TeslaMate.Vehicles.Vehicle.StreamingTest do
|
||||
assert_receive :continue?
|
||||
refute_receive _
|
||||
end) =~ """
|
||||
[warn] Discarded stale fetch result: %{
|
||||
Discarded stale fetch result: %{
|
||||
last: %TeslaApi.Vehicle.State.Drive{
|
||||
gps_as_of: nil,
|
||||
heading: 120,
|
||||
@@ -298,7 +298,7 @@ defmodule TeslaMate.Vehicles.Vehicle.StreamingTest do
|
||||
assert capture_log(@log_opts, fn ->
|
||||
stream(name, %{shift_state: "P", time: DateTime.add(now, -1, :second)})
|
||||
refute_receive _
|
||||
end) =~ "[warn] Received stale stream data"
|
||||
end) =~ "Received stale stream data"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -429,7 +429,7 @@ defmodule TeslaMate.Vehicles.Vehicle.StreamingTest do
|
||||
assert capture_log(@log_opts, fn ->
|
||||
stream(name, %{shift_state: "D", time: DateTime.add(now, 1, :millisecond)})
|
||||
refute_receive _
|
||||
end) =~ "[warn] Received stale stream data"
|
||||
end) =~ "Received stale stream data"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user