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

import 'dart:async';

import 'package:flutter_devicelab/framework/framework.dart';

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