fix: ut compile issue

This commit is contained in:
dapan1121 2024-10-09 10:29:47 +08:00
parent 0055d9544c
commit d239d3b5b2
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -33,7 +33,7 @@ TEST(osTimeTests, taosLocalTimeNolock) {
time_t currentTime;
// Test when result is not NULL
struct tm expectedTime;
result = taosLocalTimeNolock(&expectedTime, &currentTime, 1);
struct tm* result = taosLocalTimeNolock(&expectedTime, &currentTime, 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);