Skip to content

Commit f3cf6aa

Browse files
authored
Fix bug / remove useless code in tests
Signed-off-by: Dan Bechard <dbechrd@gmail.com>
1 parent 91e98a4 commit f3cf6aa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

reliable.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -2119,7 +2119,7 @@ void test_packets()
21192119
uint8_t packet_data[TEST_MAX_PACKET_BYTES];
21202120
uint16_t sequence = reliable_endpoint_next_packet_sequence( context.sender );
21212121
int packet_bytes = generate_packet_data( sequence, packet_data );
2122-
reliable_endpoint_send_packet( context.sender, packet_data, packet_bytes );
2122+
reliable_endpoint_send_packet( context.receiver, packet_data, packet_bytes );
21232123
}
21242124

21252125
reliable_endpoint_update( context.sender, time );
@@ -2227,15 +2227,13 @@ void test_sequence_buffer_rollover()
22272227
{
22282228
uint8_t packet_data[16];
22292229
int packet_bytes = sizeof( packet_data ) / sizeof( uint8_t );
2230-
reliable_endpoint_next_packet_sequence( context.sender );
22312230
reliable_endpoint_send_packet( context.sender, packet_data, packet_bytes );
22322231

22332232
++num_packets_sent;
22342233
}
22352234

22362235
uint8_t packet_data[TEST_MAX_PACKET_BYTES];
22372236
int packet_bytes = sizeof( packet_data ) / sizeof( uint8_t );
2238-
reliable_endpoint_next_packet_sequence( context.sender );
22392237
reliable_endpoint_send_packet( context.sender, packet_data, packet_bytes );
22402238
++num_packets_sent;
22412239

0 commit comments

Comments
 (0)