diff options
-rw-r--r-- | hicn-light/src/hicn/test/test-strategy-local-remote.cc | 5 | ||||
-rw-r--r-- | scripts/Dockerfile.sonarcloud | 2 | ||||
-rwxr-xr-x | tests/config.sh | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/hicn-light/src/hicn/test/test-strategy-local-remote.cc b/hicn-light/src/hicn/test/test-strategy-local-remote.cc index 413ac4080..6693e29c8 100644 --- a/hicn-light/src/hicn/test/test-strategy-local-remote.cc +++ b/hicn-light/src/hicn/test/test-strategy-local-remote.cc @@ -131,9 +131,12 @@ TEST_F(StrategyLocalRemoteTest, InputRemoteOutputRemote) { // fake two remote connections conn = connection_table_get_by_id(forwarder_get_connection_table(fwd_), prod_conn_id); + ASSERT_TRUE(conn != NULL); conn->local = false; + conn = connection_table_get_by_id(forwarder_get_connection_table(fwd_), cons_conn_id); + ASSERT_TRUE(conn != NULL); conn->local = false; msgbuf_.connection_id = cons_conn_id; @@ -171,9 +174,11 @@ TEST_F(StrategyLocalRemoteTest, InputLocalOutputRemote) { conn = connection_table_get_by_id(forwarder_get_connection_table(fwd_), prod_conn_id); + ASSERT_TRUE(conn != NULL); conn->local = false; conn = connection_table_get_by_id(forwarder_get_connection_table(fwd_), cons_conn_id); + ASSERT_TRUE(conn != NULL); conn->local = true; msgbuf_.connection_id = cons_conn_id; diff --git a/scripts/Dockerfile.sonarcloud b/scripts/Dockerfile.sonarcloud index edfe986a0..e1f40a789 100644 --- a/scripts/Dockerfile.sonarcloud +++ b/scripts/Dockerfile.sonarcloud @@ -11,7 +11,7 @@ RUN apt update && apt-get install -y \ curl \ git -RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - +RUN curl -sL https://deb.nodesource.com/setup_18.x | sudo bash - RUN apt update && apt-get install -y \ nodejs \ diff --git a/tests/config.sh b/tests/config.sh index 7e52901c7..2acb36be3 100755 --- a/tests/config.sh +++ b/tests/config.sh @@ -237,12 +237,12 @@ function start() { # Print also forwader log echo "Forwarder Log - CLIENT" - ${DOCKER_COMMAND} client cat "${FORWARDER_LOG_PATH}" + ${DOCKER_COMMAND} client sudo cat "${FORWARDER_LOG_PATH}" echo echo "Forwarder Log - SERVER" - ${DOCKER_COMMAND} server cat "${FORWARDER_LOG_PATH}" + ${DOCKER_COMMAND} server sudo cat "${FORWARDER_LOG_PATH}" } function stop() { |