Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: pkg/scheduled_test/test/descriptor_test.dart

Issue 13417002: Mark scheduled_server_test as flaky and increase the timeout on the other scheduled tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/pkg.status ('k') | pkg/scheduled_test/test/scheduled_test_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library descriptor_test; 5 library descriptor_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:pathos/path.dart' as path; 10 import 'package:pathos/path.dart' as path;
11 import 'package:scheduled_test/descriptor.dart' as d; 11 import 'package:scheduled_test/descriptor.dart' as d;
12 import 'package:scheduled_test/scheduled_test.dart'; 12 import 'package:scheduled_test/scheduled_test.dart';
13 13
14 import 'metatest.dart'; 14 import 'metatest.dart';
15 import 'utils.dart'; 15 import 'utils.dart';
16 16
17 String sandbox; 17 String sandbox;
18 18
19 void main() { 19 void main() {
20 metaSetUp(() { 20 metaSetUp(() {
21 // The windows bots are very slow, so we increase the default timeout. 21 // TODO(nweiz): We used to only increase the timeout to 10s for the Windows
22 if (Platform.operatingSystem != "windows") return; 22 // bots, but the Linux and Mac bots have started taking upwards of 5s when
23 // running pumpEventQueue, so we're increasing the timeout across the board.
Bob Nystrom 2013/04/02 00:45:22 Mention the bug number here.
nweiz 2013/04/02 00:50:00 Done.
23 currentSchedule.timeout = new Duration(seconds: 10); 24 currentSchedule.timeout = new Duration(seconds: 10);
24 }); 25 });
25 26
26 expectTestsPass('file().create() creates a file', () { 27 expectTestsPass('file().create() creates a file', () {
27 test('test', () { 28 test('test', () {
28 scheduleSandbox(); 29 scheduleSandbox();
29 30
30 d.file('name.txt', 'contents').create(); 31 d.file('name.txt', 'contents').create();
31 32
32 schedule(() { 33 schedule(() {
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 971
971 Future<List<int>> byteStreamToList(Stream<List<int>> stream) { 972 Future<List<int>> byteStreamToList(Stream<List<int>> stream) {
972 return stream.reduce(<int>[], (buffer, chunk) { 973 return stream.reduce(<int>[], (buffer, chunk) {
973 buffer.addAll(chunk); 974 buffer.addAll(chunk);
974 return buffer; 975 return buffer;
975 }); 976 });
976 } 977 }
977 978
978 Future<String> byteStreamToString(Stream<List<int>> stream) => 979 Future<String> byteStreamToString(Stream<List<int>> stream) =>
979 byteStreamToList(stream).then((bytes) => new String.fromCharCodes(bytes)); 980 byteStreamToList(stream).then((bytes) => new String.fromCharCodes(bytes));
OLDNEW
« no previous file with comments | « pkg/pkg.status ('k') | pkg/scheduled_test/test/scheduled_test_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698