Update Spock mock from different threads
I am testing code that runs in its own thread in a while loop. The code under test does some stuff based on the current time, then updates an AtomicReference<Integer>
I am testing code that runs in its own thread in a while loop. The code under test does some stuff based on the current time, then updates an AtomicReference<Integer>