Skip to content

Commit 3468b8a

Browse files
torcolvinCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 258ec96 commit 3468b8a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

topologytest/multi_actor_conflict_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ func TestMultiActorConflictCreate(t *testing.T) {
3838
t.Run(topologySpec.description, func(t *testing.T) {
3939
for _, forceClockTie := range []bool{false, true} {
4040
t.Run(clockTieSubtestName(forceClockTie), func(t *testing.T) {
41-
if forceClockTie && controllableClockPeerCount(topologySpec) < 2 {
42-
t.Skipf("only %d controllable (Sync Gateway/Couchbase Lite) peer(s) in this topology, need at least 2 to force an HLC clock tie", controllableClockPeerCount(topologySpec))
41+
if forceClockTie {
42+
if controllable := controllableClockPeerCount(topologySpec); controllable < 2 {
43+
t.Skipf("only %d controllable (Sync Gateway/Couchbase Lite) peer(s) in this topology, need at least 2 to force an HLC clock tie", controllable)
44+
}
4345
}
4446

4547
collectionName, topology := setupTests(t, topologySpec)

0 commit comments

Comments
 (0)