Skip to content

Commit 8d5d426

Browse files
committed
pass lint, fixup from merge
1 parent ece9cc6 commit 8d5d426

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

base/main_test_bucket_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func NewTestBucketPoolWithOptions(ctx context.Context, bucketReadierFunc TBPBuck
121121
unclosedBuckets: make(map[string]map[string]struct{}),
122122
useExistingBucket: TestUseExistingBucket(),
123123
useDefaultScope: options.UseDefaultScope,
124-
skipMobileXDCR: true, // do not set up enableCrossClusterVersioning until Sync Gateway 4.x
124+
skipMobileXDCR: false,
125125
}
126126

127127
tbp.cluster = newTestCluster(ctx, UnitTestUrl(), &tbp)

rest/utilities_testing_blip_client.go

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,19 +1341,6 @@ func (btcc *BlipTesterCollectionClient) StartPushWithOpts(opts BlipTesterPushOpt
13411341
base.DebugfCtx(ctx, base.KeySGTest, "sent doc %s / %v", change.docID, change.version)
13421342
// block until remote has actually processed the rev and sent a response
13431343
revResp := revRequest.Response()
1344-
/*<<<<<<< HEAD:rest/utilities_testing_blip_client.go
1345-
if status := revResp.Properties[db.BlipErrorCode]; status != "" {
1346-
if status == "409" {
1347-
// conflict on write of rev - OK to ignore and let pull replication resolve
1348-
btcc.TB().Logf("conflict on write of rev %s / %v", change.docID, change.version)
1349-
} else {
1350-
body, err := revResp.Body()
1351-
require.NoError(btcc.TB(), err)
1352-
require.FailNow(btcc.TB(), fmt.Sprintf("error response from rev: %s %s : %s", revResp.Properties["Error-Domain"], revResp.Properties["Error-Code"], body))
1353-
}
1354-
}
1355-
=======
1356-
*/
13571344
require.NotContains(btcc.TB(), revResp.Properties, "Error-Domain", "unexpected error response from rev %v: %s", revResp)
13581345
base.DebugfCtx(ctx, base.KeySGTest, "peer acked rev %s / %v", change.docID, change.version)
13591346
btcc.updateLastReplicatedVersion(change.docID, change.version)
@@ -1450,7 +1437,7 @@ func (btc *BlipTesterCollectionClient) StartPullSince(options BlipTesterPullOpti
14501437
errorDomain := subChangesResponse.Properties["Error-Domain"]
14511438
errorCode := subChangesResponse.Properties["Error-Code"]
14521439
if errorDomain != "" && errorCode != "" {
1453-
require.FailNowf(btc.TB(), "error %s %s from subChanges with body: %s", errorDomain, errorCode, string(rspBody))
1440+
require.FailNow(btc.TB(), fmt.Sprintf("error %s %s from subChanges with body: %s", errorDomain, errorCode, string(rspBody)))
14541441
}
14551442
}
14561443

topologytest/couchbase_lite_mock_peer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (p *CouchbaseLiteMockPeer) getSingleSGBlipClient() *PeerBlipTesterClient {
7777
for _, c := range p.blipClients {
7878
return c
7979
}
80-
require.Fail(p.TB(), "no blipClients found for %s", p)
80+
require.Fail(p.TB(), fmt.Sprintf("no blipClients found for %s", p))
8181
return nil
8282
}
8383

@@ -262,7 +262,7 @@ func (r *CouchbaseLiteMockReplication) Start() {
262262
case PeerReplicationDirectionPull:
263263
r.btcRunner.StartPull(r.btc.ID())
264264
default:
265-
require.Fail(r.btc.TB(), "unsupported replication direction %q", r.direction)
265+
require.Fail(r.btc.TB(), fmt.Sprintf("unsupported replication direction %q", r.direction))
266266
}
267267
}
268268

0 commit comments

Comments
 (0)