Github user JoshRosen commented on the pull request:

    https://github.com/apache/spark/pull/5635#issuecomment-95302792
  
    I think that the right way to unit test this would be to get the time via 
the `Clock` interface instead of calling `System.currentTimeMillis()` directly, 
create a static Clock instance somewhere, then rig objects to advance the time 
on this clock instance at various points, such as deserialization, task 
execution, etc.  This is totally doable, but it might involve a lot of changes 
to properly pass the Clock instance to the right places.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to