From e81af31d514089182578307308df60ea13b680e7 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Thu, 14 Dec 2023 15:54:31 +0100 Subject: [PATCH] fix: reduce message size --- .github/workflows/build-check.yaml | 4 ++-- tests/fragment.py | 4 ++-- tests/z_test_fragment_tx.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-check.yaml b/.github/workflows/build-check.yaml index 1d0d07d9e..d18f5cb2e 100644 --- a/.github/workflows/build-check.yaml +++ b/.github/workflows/build-check.yaml @@ -108,8 +108,8 @@ jobs: - name: Build project and run test run: | sudo apt install -y ninja-build - cmake -DBATCH_UNICAST_SIZE=4096 -B build/ -G Ninja - ninja -C build/ + # cmake -DBATCH_UNICAST_SIZE=4096 -B build/ -G Ninja + CMAKE_GENERATOR=Ninja make python3 ./build/tests/fragment.py timeout-minutes: 5 diff --git a/tests/fragment.py b/tests/fragment.py index d92588f6d..d29295f0f 100644 --- a/tests/fragment.py +++ b/tests/fragment.py @@ -10,11 +10,11 @@ def check_output(tx_status, tx_output, rx_status, rx_output): # Expected tx output & status z_tx_expected_status = 0 - z_tx_expected_output = "[tx]: Sending packet on test/zenoh-pico-fragment, len: 100000" + z_tx_expected_output = "[tx]: Sending packet on test/zenoh-pico-fragment, len: 10000" # Expected rx output & status z_rx_expected_status = 0 z_rx_expected_output = ( - "[rx]: Received packet on test/zenoh-pico-fragment, len: 100000, validity: 1") + "[rx]: Received packet on test/zenoh-pico-fragment, len: 10000, validity: 1") # Check the exit status of tx if tx_status == z_tx_expected_status: diff --git a/tests/z_test_fragment_tx.c b/tests/z_test_fragment_tx.c index 681666246..492930d03 100644 --- a/tests/z_test_fragment_tx.c +++ b/tests/z_test_fragment_tx.c @@ -23,7 +23,7 @@ int main(int argc, char **argv) { const char *mode = "client"; char *llocator = NULL; uint8_t *value = NULL; - size_t size = 100000; + size_t size = 10000; (void)argv; // Check if peer mode