Skip to content

Commit

Permalink
Run tests with IPv6 address (dart-lang#76)
Browse files Browse the repository at this point in the history
Use IPv4 on travis
  • Loading branch information
natebosch authored Jul 26, 2017
1 parent bbe4667 commit 9e0877e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: shelf
version: 0.6.8
version: 0.6.9-dev
author: Dart Team <[email protected]>
description: Web Server Middleware for Dart
homepage: https://github.com/dart-lang/shelf
Expand Down
5 changes: 4 additions & 1 deletion test/io_server_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ import 'test_util.dart';
void main() {
var server;
setUp(() async {
server = await IOServer.bind(InternetAddress.LOOPBACK_IP_V4, 0);
var address = Platform.environment.containsKey('TRAVIS')
? InternetAddress.LOOPBACK_IP_V4
: InternetAddress.LOOPBACK_IP_V6;
server = await IOServer.bind(address, 0);
});

tearDown(() => server.close());
Expand Down

0 comments on commit 9e0877e

Please sign in to comment.