Skip to content

Commit 0e9f789

Browse files
committed
fixup
1 parent f272ad9 commit 0e9f789

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

client/src/cbltest/api/syncgateway.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ async def _send_request(
678678
return ret_val
679679

680680
async def supports_version_vectors(self) -> bool:
681-
"""Returns whether the Sync Gateway instance supports version vectors (i.e. is 3.0 or later)"""
681+
"""Returns whether the Sync Gateway instance supports version vectors (i.e. is 4.0 or later)"""
682682
version = await self.get_version()
683683
return packaging.version.parse(version.version) >= packaging.version.parse(
684684
"4.0"
@@ -692,7 +692,8 @@ async def get_version(self) -> SyncGatewayVersion:
692692
# In a dev build /_status "version" does not contain major.minor so use model.vendor.version
693693
if model.vendor.version in model.version:
694694
sg_version = SyncGatewayVersion(model.version)
695-
sg_version = SyncGatewayVersion(model.vendor.version)
695+
else:
696+
sg_version = SyncGatewayVersion(model.vendor.version)
696697
assert packaging.version.parse(sg_version.version), (
697698
"Failed to parse Sync Gateway version from /_status response {model}"
698699
)

0 commit comments

Comments
 (0)