Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: PhantomJS timed out, possibly due to an unfinished async spec. Use --force to continue. #90

Closed
olehf opened this issue Feb 24, 2014 · 1 comment

Comments

@olehf
Copy link

olehf commented Feb 24, 2014

Hi, I have standard setup with custom middleware option:

...
debug:true, 
middleware: function (connect, options) {
                        // build paths
                        var src = [];
                        // 2. get sources to be instrumented from the config
                        grunt.file.expand('src/main/site/scripts/**/*.js').forEach(function (file) {
                            src.push('/' + file);
                        });
                        var statics = connect.static(options.base);
                        return [
                            function (request, response, next) {
                                if (src.indexOf(request.url) > -1) {
                                    // redirect to instrumented source
                                    request.url = '/.grunt/grunt-contrib-jasmine' + request.url;
                                }
                                return statics.apply(this, arguments);
                            }
                        ];
                    }
....

I can see it serving all of the files but then it hangs for couple seconds and displays warning:

Warning: PhantomJS timed out, possibly due to an unfinished async spec. Use --force to continue.
Aborted due to warnings.

What could possible cause such problems?

@jamesplease
Copy link
Member

Hey there, @olehf. I don't think this is an issue with this plugin. It sounds like an issue with PhantomJS / Jasmine. This might be related. I'd probably pursue looking for help on those libraries' issue trackers or StackOverflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants