Skip to content

Commit

Permalink
fix code for Dart-2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
a14n committed Sep 17, 2019
1 parent ac925e6 commit 2e48c8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: dart
dist: trusty
services:
- rabbitmq
jobs:
Expand Down
5 changes: 3 additions & 2 deletions lib/src/client/impl/client_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ class _ClientImpl implements Client {
_socket = s;

// Bind processors and initiate handshake
_socket
.transform(RawFrameParser(tuningSettings).transformer)
RawFrameParser(tuningSettings)
.transformer
.bind(_socket)
.transform(AmqpMessageDecoder().transformer)
.listen(_handleMessage,
onError: _handleException,
Expand Down
2 changes: 1 addition & 1 deletion test/test_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rm -f coverage/coverage.lcov
rm -f coverage/filtered.lcov

# Run tests in checked mode and start observatory; block when tests complete so we can collect coverage data
dart --enable-vm-service --pause-isolates-on-exit run_all.dart > /dev/null &
dart --disable-service-auth-codes --enable-vm-service --pause-isolates-on-exit run_all.dart > /dev/null &

# Run coverage collection tool
echo "Waiting for unit tests to run..."
Expand Down

0 comments on commit 2e48c8e

Please sign in to comment.