flutter/packages/flutter_tools/test/vmservice_test.dart
Ian Hickson 35ad2a786d
Remove race conditions involving finding available ports (#18698)
This is an attempt to reland #18488 with less breakage on macOS.
2018-06-27 16:44:28 -07:00

22 lines
562 B
Dart

// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:test/test.dart';
import 'package:flutter_tools/src/vmservice.dart';
import 'src/common.dart';
import 'src/context.dart';
void main() {
group('VMService', () {
testUsingContext('fails connection eagerly in the connect() method', () async {
expect(
VMService.connect(Uri.parse('http://host.invalid:9999/')),
throwsToolExit(),
);
});
});
}