Skip to content

Commit aed4e28

Browse files
adjust expected cache folder content for different platforms
1 parent f55bf98 commit aed4e28

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

test/extras/run.py

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,32 @@
3030
# This is to test SNOW-79940, making sure tmp files are removed
3131
# Windows does not have ocsp_response_validation_cache.lock
3232
assert (
33-
cache_files
34-
== {
35-
"ocsp_response_validation_cache.json.lock",
36-
"ocsp_response_validation_cache.json",
37-
"ocsp_response_cache.json",
38-
}
39-
and not platform.system() == "Windows"
40-
) or (
41-
cache_files
42-
== {
43-
"ocsp_response_validation_cache.json",
44-
"ocsp_response_cache.json",
45-
"crls",
46-
}
47-
and platform.system() == "Windows"
48-
), str(
49-
cache_files
50-
)
33+
(
34+
cache_files
35+
== {
36+
"ocsp_response_validation_cache.json.lock",
37+
"ocsp_response_validation_cache.json",
38+
"ocsp_response_cache.json",
39+
}
40+
and platform.system() == "Linux"
41+
)
42+
or (
43+
cache_files
44+
== {
45+
"ocsp_response_validation_cache.json",
46+
"ocsp_response_cache.json",
47+
"crls",
48+
}
49+
and platform.system() == "Windows"
50+
)
51+
or (
52+
cache_files
53+
== {
54+
"ocsp_response_validation_cache.json.lock",
55+
"ocsp_response_validation_cache.json",
56+
"ocsp_response_cache.json",
57+
"crls",
58+
}
59+
and platform.system() == "Darwin"
60+
)
61+
), str(cache_files)

0 commit comments

Comments
 (0)