fix: ut compile issue
This commit is contained in:
parent
0055d9544c
commit
d239d3b5b2
|
@ -37,7 +37,7 @@
|
|||
#include <arpa/inet.h>
|
||||
|
||||
TEST(osTest, osFQDNSuccess) {
|
||||
char fqdn[TSDB_FQDN_LEN];
|
||||
char fqdn[TD_FQDN_LEN];
|
||||
char ipString[INET_ADDRSTRLEN];
|
||||
int code = taosGetFqdn(fqdn);
|
||||
uint32_t ipv4 = 0;
|
||||
|
|
|
@ -33,7 +33,7 @@ TEST(osTimeTests, taosLocalTimeNolock) {
|
|||
time_t currentTime;
|
||||
// Test when result is not NULL
|
||||
struct tm expectedTime;
|
||||
result = taosLocalTimeNolock(&expectedTime, ¤tTime, 1);
|
||||
struct tm* result = taosLocalTimeNolock(&expectedTime, ¤tTime, 1);
|
||||
EXPECT_EQ(expectedTime.tm_year, result->tm_year);
|
||||
EXPECT_EQ(expectedTime.tm_mon, result->tm_mon);
|
||||
EXPECT_EQ(expectedTime.tm_mday, result->tm_mday);
|
||||
|
|
Loading…
Reference in New Issue