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 {
158
158
}
159
159
}
160
160
} 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 );
164
161
_abort! .completeAbort ();
165
162
}
166
163
}
@@ -493,7 +490,7 @@ class StreamingSyncImplementation {
493
490
}
494
491
}
495
492
496
- /// Delays the standard `retryDelay` Duration, but exists early if
493
+ /// Delays the standard `retryDelay` Duration, but exits early if
497
494
/// an abort has been requested.
498
495
Future <void > _delayRetry () async {
499
496
await Future .any ([Future .delayed (retryDelay), _abort! .onAbort]);
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ void main() {
21
21
});
22
22
23
23
tearDown (() async {
24
- // await testUtils.cleanDb(path: path);
24
+ await testUtils.cleanDb (path: path);
25
25
});
26
26
27
27
createTestServer () async {
Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ class TestHttpServerHelper {
21
21
// Respond immediately with a stream
22
22
return Response .ok (_controller.stream.transform (utf8.encoder),
23
23
headers: {
24
- 'Content-Type' : 'text/event-stream ' ,
24
+ 'Content-Type' : 'application/x-ndjson ' ,
25
25
'Cache-Control' : 'no-cache' ,
26
26
'Connection' : 'keep-alive' ,
27
- 'Transfer-Encoding' : 'identity' ,
28
27
},
29
28
context: {
30
29
"shelf.io.buffer_output" : false
You can’t perform that action at this time.
0 commit comments