You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we simply use the System.sleep(1000) to help the temporary credentials to be expired, while this would introduce potential issues:
If the unit test or integration test hung for serveral seconds ( such as GC or something). It's easy to produce this test to be flaky one.
It's hard for us to make the integrated and end-to-end test, assume we want to simulate the credential expiration and assert we are using the correct credential in such a complex spark job with spark standalone cluster, OSS unity catalog standalone server, OSS delta/parquet tables. With so many complex variables, every one is possible to hung the whole process, then it's impossible for us to design the integration e2e test via the System.sleep(...).
In this comment, @tdas also said it's better to mock the time clock, for better testing purposes.
Activity
Use the mock clock to test the credential expiration. (#1114)
openinx commentedon Oct 20, 2025
Closed via #1114
Use the mock clock to test the credential expiration. (unitycatalog#1114
Use the mock clock to test the credential expiration. (unitycatalog#1114
[0.3] Use the mock clock to test the credential expiration (#1189)