zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.25k stars 622 forks source link

Update dependencies including Web socket channel 3.0.1 #1462

Closed redDwarf03 closed 1 month ago

redDwarf03 commented 1 month ago

Update dependencies including Web socket channel 3.0.1 from graphql_flutter 5.1.2

Note that I've removed the examples for null safety reasons. I didn't see the point of updating in view of the new version that will be released.

Chralu commented 1 month ago

Careful, automated tests are broken here.

It seems that we do not wait for connection to be not well established before moving on.

Building package executable... 
Built test:test.
00:01 +65 -1: test/websocket_test.dart: SocketClient without payload disconnect via dispose [E]                                                       
  Expected: not null
    Actual: <null>

  package:matcher                 expect
  test/websocket_test.dart 178:7  main.<fn>.<fn>

To run this test again: /Users/charly/.asdf/installs/flutter/3.24.3-stable/bin/cache/dart-sdk/bin/dart test test/websocket_test.dart -p vm --plain-name 'SocketClient without payload disconnect via dispose'
00:01 +70 -2: test/websocket_test.dart: SocketClient without payload graphql-transport-ws disconnect via dispose graphql-transport-ws [E]             
  Expected: not null
    Actual: <null>

  package:matcher                 expect
  test/websocket_test.dart 442:7  main.<fn>.<fn>

To run this test again: /Users/charly/.asdf/installs/flutter/3.24.3-stable/bin/cache/dart-sdk/bin/dart test test/websocket_test.dart -p vm --plain-name 'SocketClient without payload graphql-transport-ws disconnect via dispose graphql-transport-ws'
00:04 +76 -2: Some tests failed.                                                                                                                      

Consider enabling the flag chain-stack-traces to receive more detailed exceptions.
For example, 'dart test --chain-stack-traces'.