Fix unit tests

This commit is contained in:
Danilo Bargen
2022-01-30 23:04:05 +01:00
parent f591829cb5
commit ea94d5bf03
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ class NewMotionAvailabilityDetectorTest {
fun apiTest() {
for (chargepoint in listOf(2105L, 18284L)) {
val charger = runBlocking { api.getChargepointDetail(chargepoint).body()!! }
.chargelocations[0].convert("") as ChargeLocation
.chargelocations[0].convert("", true) as ChargeLocation
println(charger)
runBlocking {

View File

@@ -58,7 +58,7 @@ class ChargepriceApiTest {
fun apiTest() {
for (chargepoint in listOf(2105L, 18284L)) {
val charger = runBlocking { ge.getChargepointDetail(chargepoint).body()!! }
.chargelocations[0].convert("") as ChargeLocation
.chargelocations[0].convert("", true) as ChargeLocation
println(charger)
runBlocking {