Skip to content

Commit

Permalink
* ADD unit test for setting block size.
Browse files Browse the repository at this point in the history
Signed-off-by: wanghaemq <[email protected]>
  • Loading branch information
wanghaEMQ committed Jun 11, 2024
1 parent 57afa5c commit 7b4bea3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ test_proto_handler()
// assert(0 == nftp_proto_register("demo.txt", cb_proto_demo, (void *)"I'm demo recv."));
assert(0 == nftp_proto_register("*", cb_proto_demo, (void *)"I'm demo recv."));
assert(0 == nftp_set_recvdir("./build/"));
assert(0 == nftp_set_blocksz(16 * 1024));
assert((16 * 1024) == nftp_get_blocksz());

// Transferring is not started. So error.
assert(0 != nftp_proto_recv_status(bname, &cap, &nextseq));
Expand Down

0 comments on commit 7b4bea3

Please sign in to comment.