File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -158,9 +158,6 @@ class StreamingSyncImplementation {
158158 }
159159 }
160160 } finally {
161- // The client should no longer be connected at this point
162- // Adding this update allows for breaking out of an in-progress updateLoop
163- _updateStatus (connected: false );
164161 _abort! .completeAbort ();
165162 }
166163 }
@@ -493,7 +490,7 @@ class StreamingSyncImplementation {
493490 }
494491 }
495492
496- /// Delays the standard `retryDelay` Duration, but exists early if
493+ /// Delays the standard `retryDelay` Duration, but exits early if
497494 /// an abort has been requested.
498495 Future <void > _delayRetry () async {
499496 await Future .any ([Future .delayed (retryDelay), _abort! .onAbort]);
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ void main() {
2121 });
2222
2323 tearDown (() async {
24- // await testUtils.cleanDb(path: path);
24+ await testUtils.cleanDb (path: path);
2525 });
2626
2727 createTestServer () async {
Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ class TestHttpServerHelper {
2121 // Respond immediately with a stream
2222 return Response .ok (_controller.stream.transform (utf8.encoder),
2323 headers: {
24- 'Content-Type' : 'text/event-stream ' ,
24+ 'Content-Type' : 'application/x-ndjson ' ,
2525 'Cache-Control' : 'no-cache' ,
2626 'Connection' : 'keep-alive' ,
27- 'Transfer-Encoding' : 'identity' ,
2827 },
2928 context: {
3029 "shelf.io.buffer_output" : false
You can’t perform that action at this time.
0 commit comments