Skip to content

Commit 15d9546

Browse files
committed
Move TimeService::getLocalTime() into CloudSchedule test file to make more clear how the time is configured
1 parent 210edd2 commit 15d9546

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

extras/test/src/test_CloudSchedule.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TimeService::TimeService() {}
2222
* TimeService Fake Methods
2323
**************************************************************************************/
2424

25-
unsigned long TimeService::getTime() {return time_now;}
25+
unsigned long TimeService::getLocalTime() {return time_now;}
2626

2727
/**************************************************************************************
2828
TEST CODE

extras/test/src/util/PropertyTestUtil.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ unsigned long getTime()
1919
return 0;
2020
}
2121

22-
unsigned long TimeService::getLocalTime()
23-
{
24-
return getTime();
25-
}
26-
2722
TimeService* ArduinoIoTCloudTimeService() {
2823
static TimeService _timeService_instance;
2924
return &_timeService_instance;

0 commit comments

Comments
 (0)