smoke_test_failure.dart 466 Bytes
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
2 3 4 5
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter_devicelab/framework/framework.dart';
6
import 'package:flutter_devicelab/framework/task_result.dart';
7 8

/// Smoke test of a task that fails by returning an unsuccessful response.
9
Future<void> main() async {
10
  await task(() async {
11
    return TaskResult.failure('Failed');
12 13
  });
}