Skip to content

Commit

Permalink
Try #19856:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] authored Aug 2, 2023
2 parents 576731c + 653bd61 commit bd53f29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/net/gcoap_fileserver/tests/01-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ def test_linear_topology(factory, zep_dispatch):
# upload the file to node B (only one node should write MEMORY.bin)
A.cmd("ncput /const/song.txt coap://[" + global_addr(B.cmd("ifconfig 7"))[1] + "]/vfs/song2.txt", timeout=60)

# It seems like failures may occur due to the `ncput` command finishing but
# the data not being written to the file yet. Therefore, we wait a bit...
# This is just a guess though.
time.sleep(0.5)

# make sure the content matches
assert B.cmd("md5sum /nvm0/song.txt").split()[2] == B.cmd("md5sum /nvm0/song2.txt").split()[2]

Expand Down

0 comments on commit bd53f29

Please sign in to comment.