Skip to content

PhantomJS timeout triggered by ?: expression #28

@o0chapm

Description

@o0chapm

An issue is seen when running blanket_mocha:frontend:

      this.attributes =
        _.extend(this.attributes || {},
          {serviceUrl: url + (url.indexOf("?") >= 0 ? "&" : "?") + postData});

results in PhantomJS error:
Warning: PhantomJS timed out, possibly due to a missing Mocha run() call. Use --force to continue.

Re-writing the expression clears the issue:

      var url = this.url(),
        postData = $.param(cartObject) + (postDataString ? postDataString : ""),
        index = url.indexOf("?"),
        separator = index < 0 ? "?" : "&";
      this.attributes = _.extend(this.attributes || {}, {
        serviceUrl: url + separator + postData
      });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions