Skip to content

Commit a3905e9

Browse files
committed
Allow BlipTesterClient push replication to close mid-proposeChanges without erroring
1 parent 323ae3e commit a3905e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rest/utilities_testing_blip_client.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,11 @@ func (btcc *BlipTesterCollectionClient) StartPushWithOpts(opts BlipTesterPushOpt
12661266

12671267
base.DebugfCtx(ctx, base.KeySGTest, "proposeChanges response: %s", string(rspBody))
12681268

1269+
if len(rspBody) == 0 {
1270+
// replication was closed underneath proposeChanges request/response - abort
1271+
return
1272+
}
1273+
12691274
var serverDeltas bool
12701275
if proposeChangesResponse.Properties[db.ChangesResponseDeltas] == "true" {
12711276
base.DebugfCtx(ctx, base.KeySGTest, "server supports deltas")

0 commit comments

Comments
 (0)