summaryrefslogtreecommitdiff
path: root/tests/gtest_dlt_daemon_gateway.cpp
diff options
context:
space:
mode:
authorBui Nguyen Quoc Thanh <Thanh.BuiNguyenQuoc@vn.bosch.com>2020-03-13 15:30:39 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-07-06 10:04:07 +0900
commit573c1f9a0ba41b7ffa45f36e05b7f50aae3fb1ec (patch)
tree65951eb13b5534462a890289c2f33dceecfa3624 /tests/gtest_dlt_daemon_gateway.cpp
parent472137c469bcd1faf2c6f12d9bb15e2675dd6870 (diff)
downloadDLT-daemon-573c1f9a0ba41b7ffa45f36e05b7f50aae3fb1ec.tar.gz
Unittest: Update testcase
gtest_dlt_daemon_gateway is updated to test for both cases: "With and Without General section in dlt_gateway.conf" Timeout=0 is now endless retry. So change it to "-1" Signed-off-by: Bui Nguyen Quoc Thanh <Thanh.BuiNguyenQuoc@vn.bosch.com>
Diffstat (limited to 'tests/gtest_dlt_daemon_gateway.cpp')
-rw-r--r--tests/gtest_dlt_daemon_gateway.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gtest_dlt_daemon_gateway.cpp b/tests/gtest_dlt_daemon_gateway.cpp
index b0cd229..8b293bb 100644
--- a/tests/gtest_dlt_daemon_gateway.cpp
+++ b/tests/gtest_dlt_daemon_gateway.cpp
@@ -321,7 +321,7 @@ TEST(t_dlt_gateway_check_timeout, abnormal)
{
DltGatewayConnection tmp;
DltGatewayConnection *con;
- char value[DLT_CONFIG_FILE_ENTRY_MAX_LEN] = "0";
+ char value[DLT_CONFIG_FILE_ENTRY_MAX_LEN] = "-1";
con = &tmp;
EXPECT_EQ(DLT_RETURN_ERROR, dlt_gateway_check_timeout(con, value));