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

Cannot override default jasmine timeout when using grunt runner #57

Open
christinedraper opened this issue Nov 9, 2014 · 2 comments
Open

Comments

@christinedraper
Copy link

In my spec helper, I have changed the default timeout to 10 seconds using:

jasmine.getEnv().defaultTimeoutInterval = 10 *1000

This works fine when run through the jasmine-node timeout. However, when I use the grunt plugin, it goes back to the standard 5 seconds default.

I am using node 0.10.29, grunt 0.4.5, jasmine-node 1.14.3, grunt-jasmine-node 0.2.1

@marcincichon
Copy link

Same issue here. @christinedraper have you managed to resolve it?

@christinedraper
Copy link
Author

No. I resorted to putting a longer timeout on specific tests, i.e.

it("should do something that takes a while", function(done)
{
    request.get(.... }, function(error, response, body)
    {
        ...
        done();
    });
}, request.longerTimeout);

Not ideal though.

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