vmservice_test.dart 528 Bytes
Newer Older
1 2 3 4 5 6
// 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:flutter_tools/src/vmservice.dart';

7 8 9
import 'src/common.dart';
import 'src/context.dart';

10 11
void main() {
  group('VMService', () {
12
    testUsingContext('fails connection eagerly in the connect() method', () async {
13
      expect(
14
        VMService.connect(Uri.parse('http://host.invalid:9999/')),
15
        throwsToolExit(),
16 17 18 19
      );
    });
  });
}