From 6de9b5a6fc96af7388af37cabba29eaea2cf69ca Mon Sep 17 00:00:00 2001
From: athatheocsd <athatheo@csd.auth.gr>
Date: Thu, 6 Dec 2018 00:28:10 +0200
Subject: [PATCH] Changed tests to fit uint16_t changes

---
 src/Services/EventReportService.cpp  | 2 +-
 test/Services/EventReportService.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Services/EventReportService.cpp b/src/Services/EventReportService.cpp
index f7a0b227..4f9d50be 100644
--- a/src/Services/EventReportService.cpp
+++ b/src/Services/EventReportService.cpp
@@ -83,7 +83,7 @@ void EventReportService::listOfDisabledEventsReport() {
 	Message report = createTM(8);
 
 	uint16_t numberOfDisabledEvents = stateOfEvents.size() - stateOfEvents.count();
-	report.appendByte(numberOfDisabledEvents);
+	report.appendHalfword(numberOfDisabledEvents);
 	for (uint16_t i = 0; i < stateOfEvents.size(); i++) {
 		if (stateOfEvents[i] == 0) {
 			report.appendEnum16(i);
diff --git a/test/Services/EventReportService.cpp b/test/Services/EventReportService.cpp
index e666b2d4..e7e9cc23 100644
--- a/test/Services/EventReportService.cpp
+++ b/test/Services/EventReportService.cpp
@@ -130,9 +130,9 @@ TEST_CASE("List of Disabled Events Report TM[5,8]", "[service][st05]") {
 	CHECK(report.serviceType == 5);
 	CHECK(report.messageType == 8);
 	CHECK(report.packetType == Message::TM); // packet type(TM = 0, TC = 1)
-	REQUIRE(report.dataSize == 3);
+	REQUIRE(report.dataSize == 6);
 	// Check for the information stored in report
-	CHECK(report.readHalfWord() == 2);
+	CHECK(report.readHalfword() == 2);
 	CHECK(report.readEnum16() == 3);
 	CHECK(report.readEnum16() == 6);
 }
-- 
GitLab