Skip to content

Commit 369d752

Browse files
committed
Only assert cache size on >= 2024.05.0
1 parent 00bdda6 commit 369d752

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integration/tests/posit/connect/test_system.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,6 @@ def test_runtime_caches(self):
7474
# Check if the cache is deployed
7575
caches = self.client.system.caches.runtime.find()
7676

77-
assert len(caches) > 0
77+
# Caches only added in Connect versions >= 2024.05.0
78+
if CONNECT_VERSION >= version.parse("2024.05.0"):
79+
assert len(caches) > 0

0 commit comments

Comments
 (0)