mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
027618092a
This test was written to assume that the stdout stream would deliver LSP headers and body in separate "packets", but wasn't guaranteed to be the case. The failure at https://dart-ci.appspot.com/log/pkg-linux-release/unittest-asserts-release-linux/19779/pkg/dartdev/test/commands/language_server_test shows that both header+body arrived together which caused the test to fail. These changes buffer the output until the complete message is available and then return the body of the message. Change-Id: I5a5ec49fdca667ae351e602ca2d589fd2ab06ba3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251548 Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> |
||
---|---|---|
.. | ||
commands | ||
smoke | ||
analysis_server_test.dart | ||
analytics_test.dart | ||
core_test.dart | ||
experiment_util.dart | ||
experiments_test.dart | ||
fix_driver_test.dart | ||
load_from_dill_test.dart | ||
no_such_file_test.dart | ||
regress_46364_test.dart | ||
sdk_test.dart | ||
templates_test.dart | ||
test_all.dart | ||
utils.dart | ||
utils_test.dart |