This is related to my previous question, but different enough that I figured I\'d throw it into a new one. I have some code that runs async on a custom queue, then executes
Square included a clever addition to SenTestCase in their SocketRocket project that makes this easy. You can call it like this:
[self runCurrentRunLoopUntilTestPasses:^BOOL{
return [someOperation isDone];
} timeout: 60 * 60];
The code is available here:
SenTestCase+SRTAdditions.h
SenTestCase+SRTAdditions.m