Testing async code with OCUnit
Testing async code with OCUnit
- Subject: Testing async code with OCUnit
- From: Nir Soffer <email@hidden>
- Date: Thu, 24 Aug 2006 15:07:37 +0300
I'm trying to test code like this:
- (void)testPerformWithFooIfCondition
{
[foo doSomethingWithCondition:condition];
}
When foo uses code like this:
- (void) doSomethingWithCondition:condition
{
if (condition)
[self preformSelector:@selector(taskDidFinishWithObject:)
withObject:bar afterDelay:0.0];
}
However, when this call happen, this test was finished long time ago.
I want to the test code to wait for some reasonable time and report a
failure if foo did not get the message.
It seems to be impossible with OCUnit.
Best Regards,
Nir Soffer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden