Skip to content

Commit

Permalink
fix: reduce message size
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Dec 14, 2023
1 parent 14f5ce2 commit 10604b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ 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_GENERATOR=Ninja make
python3 ./build/tests/fragment.py
timeout-minutes: 5

Expand Down
4 changes: 2 additions & 2 deletions tests/fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: 2000"
# 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: 2000, validity: 1")

# Check the exit status of tx
if tx_status == z_tx_expected_status:
Expand Down
2 changes: 1 addition & 1 deletion tests/z_test_fragment_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 2000;
(void)argv;

// Check if peer mode
Expand Down

0 comments on commit 10604b3

Please sign in to comment.