Skip to content

Commit f7c13c8

Browse files
fixup! fixup! fixup! fixup! fixup! Include the binary in repo
1 parent c707fd0 commit f7c13c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/unit/test_util.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def test_load_skips_loading_when_core_disabled(self):
242242
with mock.patch.dict(os.environ, {"SNOWFLAKE_DISABLE_MINICORE": "1"}):
243243
with mock.patch.object(loader, "_get_core_path") as mock_get_path:
244244
loader.load()
245+
sleep(2)
245246

246247
# Verify that _get_core_path was never called (loading was skipped)
247248
mock_get_path.assert_not_called()
@@ -268,6 +269,7 @@ def test_load_success(self):
268269
loader, "_register_functions"
269270
) as mock_register:
270271
loader.load()
272+
sleep(2)
271273

272274
mock_get_path.assert_called_once()
273275
mock_load.assert_called_once_with(mock_path)
@@ -286,6 +288,7 @@ def test_load_failure(self):
286288
loader, "_get_core_path", side_effect=test_error
287289
) as mock_get_path:
288290
loader.load()
291+
sleep(2)
289292

290293
mock_get_path.assert_called_once()
291294
assert loader._version is None
@@ -424,6 +427,7 @@ def test_core_loader_error_captured_when_load_fails():
424427
with mock.patch.object(loader, "_get_core_path", side_effect=test_exception):
425428
# Call load - it should NOT raise an exception
426429
loader.load()
430+
sleep(2)
427431

428432
# Verify the error was captured
429433
assert loader._error is test_exception
@@ -443,6 +447,7 @@ def test_core_loader_fails_gracefully_on_missing_library():
443447

444448
# Call load - it should NOT raise an exception
445449
loader.load()
450+
sleep(2)
446451

447452
# Verify the error was captured
448453
assert loader._error is not None
@@ -465,6 +470,7 @@ def test_core_loader_fails_gracefully_on_incompatible_library():
465470
):
466471
# Call load - it should NOT raise an exception
467472
loader.load()
473+
sleep(2)
468474

469475
# Verify the error was captured
470476
assert loader._error is not None

0 commit comments

Comments
 (0)