Skip to content

Commit 5a29d5b

Browse files
committed
fix print debugging
1 parent b60abf3 commit 5a29d5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rest/utilities_testing_blip_client.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func (cd *clientDoc) _hasConflict(t testing.TB, incomingHLV *db.HybridLogicalVec
326326
localCV := localHLV.ExtractCurrentVersionFromHLV()
327327
// safety check - ensure SG is not sending a rev that we already had - ensures changes feed messaging is working correctly to prevent
328328
if localCV.Equal(*incomingCV) {
329-
require.FailNow(t, fmt.Sprintf("incoming CV %#+v is equal to local revision %#+v - this should've been filtered via changes response before ending up as a rev. This is only true if there is a single replication occuring, two simultaneous replications (e.g. P2P) could cause this. If there are multiple replications, modify code.", incomingCV, latestRev))
329+
require.FailNow(t, fmt.Sprintf("incoming CV %#+v is equal to local revision %#+v - this should've been filtered via changes response before ending up as a rev. This is only true if there is a single replication occurring, two simultaneous replications (e.g. P2P) could cause this. If there are multiple replications, modify code.", incomingCV, latestRev))
330330
}
331331
// standard no conflict case. In the simple case, this happens when:
332332
// - SG writes document 1@cbs1
@@ -382,7 +382,6 @@ func (btcc *BlipTesterCollectionClient) _resolveConflictLWW(incomingHLV *db.Hybr
382382
delete(updatedHLV.PreviousVersions, incomingHLV.SourceID)
383383
delete(updatedHLV.PreviousVersions, btcc.parent.SourceID)
384384
delete(updatedHLV.PreviousVersions, latestLocalHLV.SourceID)
385-
panic("here")
386385
updatedHLV.SetMergeVersion(incomingHLV.SourceID, incomingHLV.Version)
387386
updatedHLV.SetMergeVersion(latestLocalHLV.SourceID, latestLocalHLV.Version)
388387
updatedHLV.SourceID = btcc.parent.SourceID

0 commit comments

Comments
 (0)