aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_sendme.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_sendme.c')
-rw-r--r--src/test/test_sendme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_sendme.c b/src/test/test_sendme.c
index ad6aac6c0c..92f478df0e 100644
--- a/src/test/test_sendme.c
+++ b/src/test/test_sendme.c
@@ -156,12 +156,12 @@ test_v1_build_cell(void *arg)
circ = TO_CIRCUIT(or_circ);
cell_digest = crypto_digest_new();
- crypto_digest_add_bytes(cell_digest, "AAAA", 4);
+ crypto_digest_add_bytes(cell_digest, "AAAAAAAAAAAAAAAAAAAA", 20);
tt_assert(cell_digest);
- /* SENDME v1 payload is 7 bytes. See spec. */
+ /* SENDME v1 payload is 3 bytes + 20 bytes digest. See spec. */
ret = build_cell_payload_v1(cell_digest, payload);
- tt_int_op(ret, OP_EQ, 7);
+ tt_int_op(ret, OP_EQ, 23);
/* Validation. */