From b4426c61be583911d3457081f3b73e9b7764f8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Sat, 12 Oct 2024 16:59:07 +0100 Subject: [PATCH] Garmin: Fix unit tests --- .gitignore | 1 + .../service/devices/garmin/GarminSupportTest.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0cc505dbe..89324ddef 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ fw.dirs **/.classpath app/release/output-metadata.json app/.cxx/ +.attach_pid* diff --git a/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/service/devices/garmin/GarminSupportTest.java b/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/service/devices/garmin/GarminSupportTest.java index ae6666416..7b09dce1c 100644 --- a/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/service/devices/garmin/GarminSupportTest.java +++ b/app/src/test/java/nodomain/freeyourgadget/gadgetbridge/service/devices/garmin/GarminSupportTest.java @@ -363,9 +363,9 @@ public class GarminSupportTest extends TestBase { "FitFileId{manufacturer=15, type=ACTIVITY, product=9001, serial_number=1701}, " + "FitDeveloperData{application_id=[1,1,2,3,5,8,13,21,34,55,89,144,233,121,98,219], developer_data_index=0}, " + "FitFieldDescription{developer_data_index=0, field_definition_number=0, fit_base_type_id=1, field_name=doughnuts_earned, units=doughnuts}, " + - "FitRecord{heart_rate=140, unknown_4(UINT8/1)=88, distance=510.0, speed=47.488, doughnuts_earned=1}, " + - "FitRecord{heart_rate=143, unknown_4(UINT8/1)=90, distance=2080.0, speed=36.416, doughnuts_earned=2}, " + - "FitRecord{heart_rate=144, unknown_4(UINT8/1)=92, distance=3710.0, speed=35.344, doughnuts_earned=3}" + + "FitRecord{heart_rate=140, cadence=88, distance=510.0, speed=47.488, doughnuts_earned=1}, " + + "FitRecord{heart_rate=143, cadence=90, distance=2080.0, speed=36.416, doughnuts_earned=2}, " + + "FitRecord{heart_rate=144, cadence=92, distance=3710.0, speed=35.344, doughnuts_earned=3}" + "]"; FitFile fitFile = FitFile.parseIncoming(fileContents);