From 9fae60d241bcb8423e54df4b9522f27460535d3f Mon Sep 17 00:00:00 2001 From: frekky Date: Sat, 17 Oct 2015 22:31:53 +0800 Subject: [PATCH] Updated window test for modified ACK behaviour --- tests/window.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/window.c b/tests/window.c index 393814e..6920d33 100644 --- a/tests/window.c +++ b/tests/window.c @@ -50,10 +50,10 @@ START_TEST(test_window_everything) // warnx("Nothing to send."); continue; } - fail_if((a = window_process_incoming_fragment(in, f)) != f->seqID, "Did not ACK last seqId!"); + fail_if(window_process_incoming_fragment(in, f) < 0, "Dropped fragment!"); // warnx("Received fragment with seqid %u, remaining space %lu.", f->seqID, window_buffer_available(in)); window_tick(in); - window_ack(out, a); + window_ack(out, f->seqID); window_tick(out); fail_if(out->start_seq_id != in->start_seq_id, "in/out windows have different start IDs!"); }