Updated window test for modified ACK behaviour

This commit is contained in:
frekky 2015-10-17 22:31:53 +08:00
parent 1c1f0b76ba
commit 9fae60d241

View File

@ -50,10 +50,10 @@ START_TEST(test_window_everything)
// warnx("Nothing to send."); // warnx("Nothing to send.");
continue; 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)); // warnx("Received fragment with seqid %u, remaining space %lu.", f->seqID, window_buffer_available(in));
window_tick(in); window_tick(in);
window_ack(out, a); window_ack(out, f->seqID);
window_tick(out); window_tick(out);
fail_if(out->start_seq_id != in->start_seq_id, "in/out windows have different start IDs!"); fail_if(out->start_seq_id != in->start_seq_id, "in/out windows have different start IDs!");
} }