keyValueObservingExpectationForObject doesn't work

Originator:derdiedasdom
Number:rdar://19364700 Date Originated:01-Jan-2015 09:55 PM
Status:Duplicate of 10545870 Resolved:
Product:Developer Tools Product Version:6.1.1-6.2
Classification:Serious Bug Reproducible:Always
 
Summary:
I try to use keyValueObservingExpectationForObject to test whether a view controller was pushed onto the navigation stack. The test always runs into the timeout and fails. Even when I use false for the animated parameter I get the same behavior.

Steps to Reproduce:
Open the attached project and run the tests.

Expected Results:
testExample() passes.

Actual Results:
testExample() fails.

Regression:


Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!