Frage im Vorstellungsgespräch bei Canva

Your code involves some delayed operations that depend on the system clock. How could we make them better testable without having long running tests?

Antworten zu Vorstellungsgespräch

Anonym

21. März 2019

very open question I should say. You can mock the class, trick the LD_PRELOAD, patch the kernel...

Anonym

31. Aug. 2017

Hint: Changing the system clock is not the only way to speed up time.