Duration is not returned before build is finished

This commit is contained in:
Piotr Sarnacki 2014-08-14 22:47:56 +02:00
parent 2ccade46a4
commit dd46161487

View File

@ -108,7 +108,7 @@ require 'travis/model'
).observes('state')
isPropertyLoaded: (key) ->
if ['_finishedAt'].contains(key) && !@get('isFinished')
if ['_duration', '_finishedAt'].contains(key) && !@get('isFinished')
return true
else if key == '_startedAt' && @get('state') == 'created'
return true