Skip to content

Commit

Permalink
Remove unused addresses from connection-based tests
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Bechard <[email protected]>
  • Loading branch information
dbechrd authored Oct 6, 2024
1 parent 22bf473 commit 547c368
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,12 +641,6 @@ void test_connection_reliable_ordered_messages()
sender.SendMessage( ReliableChannel, message );
}

const int SenderPort = 10000;
const int ReceiverPort = 10001;

Address senderAddress( "::1", SenderPort );
Address receiverAddress( "::1", ReceiverPort );

int numMessagesReceived = 0;

const int NumIterations = 1000;
Expand Down Expand Up @@ -709,12 +703,6 @@ void test_connection_reliable_ordered_blocks()
sender.SendMessage( ReliableChannel, message );
}

const int SenderPort = 10000;
const int ReceiverPort = 10001;

Address senderAddress( "::1", SenderPort );
Address receiverAddress( "::1", ReceiverPort );

int numMessagesReceived = 0;

uint16_t senderSequence = 0;
Expand Down Expand Up @@ -802,12 +790,6 @@ void test_connection_reliable_ordered_messages_and_blocks()
}
}

const int SenderPort = 10000;
const int ReceiverPort = 10001;

Address senderAddress( "::1", SenderPort );
Address receiverAddress( "::1", ReceiverPort );

int numMessagesReceived = 0;

uint16_t senderSequence = 0;
Expand Down Expand Up @@ -923,12 +905,6 @@ void test_connection_reliable_ordered_messages_and_blocks_multiple_channels()
}
}

const int SenderPort = 10000;
const int ReceiverPort = 10001;

Address senderAddress( "::1", SenderPort );
Address receiverAddress( "::1", ReceiverPort );

const int NumIterations = 10000;

int numMessagesReceived[NumChannels];
Expand Down Expand Up @@ -1025,12 +1001,6 @@ void test_connection_unreliable_unordered_messages()
Connection sender( GetDefaultAllocator(), messageFactory, connectionConfig, time );
Connection receiver( GetDefaultAllocator(), messageFactory, connectionConfig, time );

const int SenderPort = 10000;
const int ReceiverPort = 10001;

Address senderAddress( "::1", SenderPort );
Address receiverAddress( "::1", ReceiverPort );

const int NumIterations = 256;

const int NumMessagesSent = 16;
Expand Down Expand Up @@ -1090,12 +1060,6 @@ void test_connection_unreliable_unordered_blocks()

Connection receiver( GetDefaultAllocator(), messageFactory, connectionConfig, time );

const int SenderPort = 10000;
const int ReceiverPort = 10001;

Address senderAddress( "::1", SenderPort );
Address receiverAddress( "::1", ReceiverPort );

const int NumIterations = 256;

const int NumMessagesSent = 8;
Expand Down Expand Up @@ -2064,12 +2028,6 @@ void test_single_message_type_reliable()
sender.SendMessage( 0, message );
}

const int SenderPort = 10000;
const int ReceiverPort = 10001;

Address senderAddress( "::1", SenderPort );
Address receiverAddress( "::1", ReceiverPort );

int numMessagesReceived = 0;

const int NumIterations = 1000;
Expand Down Expand Up @@ -2132,12 +2090,6 @@ void test_single_message_type_reliable_blocks()
sender.SendMessage( 0, message );
}

const int SenderPort = 10000;
const int ReceiverPort = 10001;

Address senderAddress( "::1", SenderPort );
Address receiverAddress( "::1", ReceiverPort );

int numMessagesReceived = 0;

uint16_t senderSequence = 0;
Expand Down Expand Up @@ -2201,12 +2153,6 @@ void test_single_message_type_unreliable()
Connection sender( GetDefaultAllocator(), messageFactory, connectionConfig, time );
Connection receiver( GetDefaultAllocator(), messageFactory, connectionConfig, time );

const int SenderPort = 10000;
const int ReceiverPort = 10001;

Address senderAddress( "::1", SenderPort );
Address receiverAddress( "::1", ReceiverPort );

const int NumIterations = 256;

const int NumMessagesSent = 16;
Expand Down

0 comments on commit 547c368

Please sign in to comment.