Browse files

Fix duration() call when end_time not set

  • Loading branch information...
1 parent 9058bc1 commit becd6c6ed81af734e6b1f648697caab46eedce31 @rayh committed Feb 20, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/xcode/test/ocunit_report_parser.rb
View
1 lib/xcode/test/ocunit_report_parser.rb
@@ -36,6 +36,7 @@ def finished?
end
def duration
+ return Time.now - @start_time if @end_time.nil?
@end_time - @start_time
end

0 comments on commit becd6c6

Please sign in to comment.