Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused addresses from connection-based tests #215

Merged
merged 1 commit into from
Oct 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading