Skip to content

Commit

Permalink
Update timeout tests with easier to remember host.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Reese committed Nov 2, 2017
1 parent e8751cb commit ff0a2f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions FastSocketTest.m
Expand Up @@ -76,9 +76,9 @@ - (void)testDoubleCloseAfterConnectionFailure {
}

- (void)testConnectWithDefaultTimeout {
// Connect to a non-routable IP address. See http://stackoverflow.com/a/904609/209371
// Connect to a non-routable IP address. See https://stackoverflow.com/a/40459270
[client close];
client = [[FastSocket alloc] initWithHost:@"10.255.255.1" andPort:@"81"];
client = [[FastSocket alloc] initWithHost:@"example.com" andPort:@"81"];

// Connection should timeout.
NSTimeInterval startTime = [NSDate timeIntervalSinceReferenceDate];
Expand All @@ -93,9 +93,9 @@ - (void)testConnectWithDefaultTimeout {
}

- (void)testConnectWithCustomTimeout {
// Connect to a non-routable IP address. See http://stackoverflow.com/a/904609/209371
// Connect to a non-routable IP address. See https://stackoverflow.com/a/40459270
[client close];
client = [[FastSocket alloc] initWithHost:@"10.255.255.1" andPort:@"81"];
client = [[FastSocket alloc] initWithHost:@"example.com" andPort:@"81"];

// Connection should timeout.
NSTimeInterval startTime = [NSDate timeIntervalSinceReferenceDate];
Expand Down

0 comments on commit ff0a2f6

Please sign in to comment.