Hey everyone,
I've been working on a set of flex unit tests that implement Mockolate. We have been experiencing hanging issues within some of our tests, both on our local environments and in our CI environment.
The error I am seeing is:
Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
at org.flemit.bytecode::ByteCodeLayout/assertEqArrayIndex()[/Volumes/Data/flemit/flemit/src/org/flemit/bytecode/ByteCodeLayout.as:732]
at org.flemit.bytecode::ByteCodeLayout/registerMultiname()[/Volumes/Data/flemit/flemit/src/org/flemit/bytecode/ByteCodeLayout.as:654]
at org.flemit.bytecode::ByteCodeLayout/registerMethodBody()[/Volumes/Data/flemit/flemit/src/org/flemit/bytecode/ByteCodeLayout.as:615]
at org.flemit.bytecode::ByteCodeLayoutBuilder/createLayout()[/Volumes/Data/flemit/flemit/src/org/flemit/bytecode/ByteCodeLayoutBuilder.as:72]
at org.floxy::ProxyRepository/prepareClasses()[/Volumes/Data/floxy/floxy/src/org/floxy/ProxyRepository.as:278]
at mockolate.ingredients.floxy::FloxyMockolateFactory/prepareClasses()[/Volumes/Data/mockolate/mockolate/src/mockolate/ingredients/floxy/FloxyMockolateFactory.as:57]
at mockolate.ingredients::Mockolatier/prepareClassRecipes()[/Volumes/Data/mockolate/mockolate/src/mockolate/ingredients/Mockolatier.as:113]
at mockolate.runner.statements::PrepareMockClasses/evaluate()[/Volumes/Data/mockolate/mockolate/src/mockolate/runner/statements/PrepareMockClasses.as:31]
at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[/Users/joshuagoodson/workspace/support/3rdparty/flexunit-master/FlexUnit4/src/org/flexunit/internals/runners/statements/StatementSequencer.as:98]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete()[/Users/joshuagoodson/workspace/support/3rdparty/flexunit-master/FlexUnit4/src/org/flexunit/internals/runners/statements/StatementSequencer.as:141]
at org.flexunit.token::AsyncTestToken/sendResult()[/Users/joshuagoodson/workspace/support/3rdparty/flexunit-master/FlexUnit4/src/org/flexunit/token/AsyncTestToken.as:107]
at mockolate.runner.statements::IdentifyMockClasses/evaluate()[/Volumes/Data/mockolate/mockolate/src/mockolate/runner/statements/IdentifyMockClasses.as:59]
at org.flexunit.internals.runners.statements::StatementSequencer/executeStep()[/Users/joshuagoodson/workspace/support/3rdparty/flexunit-master/FlexUnit4/src/org/flexunit/internals/runners/statements/StatementSequencer.as:98]
at org.flexunit.internals.runners.statements::StatementSequencer/handleChildExecuteComplete()[/Users/joshuagoodson/workspace/support/3rdparty/flexunit-master/FlexUnit4/src/org/flexunit/internals/runners/statements/StatementSequencer.as:141]
at org.flexunit.internals.runners.statements::StatementSequencer/evaluate()[/Users/joshuagoodson/workspace/support/3rdparty/flexunit-master/FlexUnit4/src/org/flexunit/internals/runners/statements/StatementSequencer.as:109]
at mockolate.runner::MockolateRule/evaluate()[/Volumes/Data/mockolate/mockolate/src/mockolate/runner/MockolateRule.as:281]
at org.flexunit.internals.runners.statements::StackAndFrameManagement/handleTimerComplete()[/Users/joshuagoodson/workspace/support/3rdparty/flexunit-master/FlexUnit4/src/org/flexunit/internals/runners/statements/StackAndFrameManagement.as:138]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.utils::Timer/tick()
Does anyone have any insight into why this may be occurring? I will be eternally grateful. If you need any further information from me, please don't hesitate to ask.
Thanks,
Josh