Permalink
Browse files

Changed timeout type in KWAsyncVerifier to NSTimeInterval from NSUInt…

…eger to avoid compiler warning for clients using warnings on implicit conversions. If you pass in a negative timeinterval, you deserve unexpected behavior.
  • Loading branch information...
1 parent f26be56 commit a405f3577abbdfcabf857a7ba1a8d06d2086a370 @JohannesRudolph JohannesRudolph committed Nov 17, 2011
Showing with 4 additions and 4 deletions.
  1. +3 −3 Kiwi/KWAsyncVerifier.h
  2. +1 −1 Kiwi/KWAsyncVerifier.m
@@ -16,11 +16,11 @@
@interface KWAsyncVerifier : KWMatchVerifier
{
- NSInteger timeout;
+ NSTimeInterval timeout;
}
-@property (nonatomic, assign) NSInteger timeout;
+@property (nonatomic, assign) NSTimeInterval timeout;
-+ (id)asyncVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id<KWReporting>)aReporter probeTimeout:(NSInteger)probeTimeout;
++ (id)asyncVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id<KWReporting>)aReporter probeTimeout:(NSTimeInterval)probeTimeout;
- (void)verifyWithProbe:(KWAsyncMatcherProbe *)aProbe;
@end
@@ -16,7 +16,7 @@ @implementation KWAsyncVerifier
@synthesize timeout;
-+ (id)asyncVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id<KWReporting>)aReporter probeTimeout:(NSInteger)probeTimeout;
++ (id)asyncVerifierWithExpectationType:(KWExpectationType)anExpectationType callSite:(KWCallSite *)aCallSite matcherFactory:(KWMatcherFactory *)aMatcherFactory reporter:(id<KWReporting>)aReporter probeTimeout:(NSTimeInterval)probeTimeout;
{
KWAsyncVerifier *verifier = [[self alloc] initWithExpectationType:anExpectationType callSite:aCallSite matcherFactory:aMatcherFactory reporter:aReporter];
verifier.timeout = probeTimeout;

0 comments on commit a405f35

Please sign in to comment.