Skip to content

Commit

Permalink
Merge pull request #35 from Workiva/batch/fedx/dart_2_19
Browse files Browse the repository at this point in the history
Dart 2.19
  • Loading branch information
rmconsole5-wk authored Oct 30, 2023
2 parents 79e228d + d47cffc commit e272849
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sdk: [ 2.18.7, stable ]
sdk: [ 2.18.7, 2.19.6 ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM drydock-prod.workiva.net/workiva/dart2_base_image:1
FROM drydock-prod.workiva.net/workiva/dart2_base_image:2
WORKDIR /build/
ADD pubspec.yaml .
RUN dart pub get
Expand Down
1 change: 0 additions & 1 deletion lib/src/sse_proxy_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class SseProxyHandler {
sink.close();
});
});
return shelf.Response.notFound('');
}

Future<shelf.Response> _handle(shelf.Request req) async {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: >
routing by rewriting 404s to the root index.
environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.18.0 <3.0.0'

dependencies:
args: ^2.3.1
Expand Down
9 changes: 5 additions & 4 deletions test/chromedriver_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:io';

import 'package:test/test.dart';
import 'package:webdev_proxy/src/port_utils.dart';
import 'package:webdriver/io.dart' as wd;
import 'package:webdriver/async_io.dart' as wd;

const chromeDriverPort = 4444;
const chromeDriverUrlBase = 'wd/hub';
Expand All @@ -18,8 +18,8 @@ Future<void> startChromeDriver() async {
}
});

// On windows this takes a while to boot up, wait for the first line
// of stdout as a signal that it is ready.
// On windows this takes a while to boot up, wait for a message on stdout
// indicating ChromeDriver started successfully.
final stdOutLines = chromeDriver.stdout
.transform(utf8.decoder)
.transform(LineSplitter())
Expand All @@ -33,7 +33,8 @@ Future<void> startChromeDriver() async {
stdOutLines.listen((line) => print('ChromeDriver stdout: $line'));
stdErrLines.listen((line) => print('ChromeDriver stderr: $line'));

await stdOutLines.first;
await stdOutLines.firstWhere(
(line) => line.contains('ChromeDriver was started successfully'));
} catch (e) {
throw StateError(
'Could not start ChromeDriver. Is it installed?\nError: $e');
Expand Down
2 changes: 1 addition & 1 deletion test/sse_proxy_handler_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:shelf_static/shelf_static.dart';
import 'package:sse/server/sse_handler.dart';
import 'package:test/test.dart';
import 'package:webdev_proxy/src/port_utils.dart';
import 'package:webdriver/io.dart';
import 'package:webdriver/async_io.dart';

import 'package:webdev_proxy/src/sse_proxy_handler.dart';

Expand Down

0 comments on commit e272849

Please sign in to comment.