Skip to content

Commit

Permalink
Merge pull request #32 from dbechrd/dbechrd-patch-1
Browse files Browse the repository at this point in the history
Fix bug / remove useless code in tests
  • Loading branch information
gafferongames authored Aug 25, 2024
2 parents 91e98a4 + f3cf6aa commit 49b09d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions reliable.c
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@ void test_packets()
uint8_t packet_data[TEST_MAX_PACKET_BYTES];
uint16_t sequence = reliable_endpoint_next_packet_sequence( context.sender );
int packet_bytes = generate_packet_data( sequence, packet_data );
reliable_endpoint_send_packet( context.sender, packet_data, packet_bytes );
reliable_endpoint_send_packet( context.receiver, packet_data, packet_bytes );
}

reliable_endpoint_update( context.sender, time );
Expand Down Expand Up @@ -2227,15 +2227,13 @@ void test_sequence_buffer_rollover()
{
uint8_t packet_data[16];
int packet_bytes = sizeof( packet_data ) / sizeof( uint8_t );
reliable_endpoint_next_packet_sequence( context.sender );
reliable_endpoint_send_packet( context.sender, packet_data, packet_bytes );

++num_packets_sent;
}

uint8_t packet_data[TEST_MAX_PACKET_BYTES];
int packet_bytes = sizeof( packet_data ) / sizeof( uint8_t );
reliable_endpoint_next_packet_sequence( context.sender );
reliable_endpoint_send_packet( context.sender, packet_data, packet_bytes );
++num_packets_sent;

Expand Down

0 comments on commit 49b09d0

Please sign in to comment.