-
Notifications
You must be signed in to change notification settings - Fork 604
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
error-reporting: Add errors.report
system test
#2264
error-reporting: Add errors.report
system test
#2264
Conversation
This change adds a system test that verifies that the `errors.report` method correctly reports an error to the error reporting console.
uri: [API, id, 'events'].join('/'), | ||
method: 'DELETE' | ||
}; | ||
self.request_(options, function(err, /* jshint unused:false */ response, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
}); | ||
|
||
it('Should correctly publish errors', function(done) { | ||
this.timeout(TIMEOUT * 2); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
}); | ||
|
||
after(function(done) { | ||
transport.deleteAllEvents(function(err) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
var rep = errItem.representative; | ||
assert.ok(rep); | ||
var context = rep.serviceContext; | ||
assert.ok(context); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@stephenplusplus This is ready to land now. |
This change adds a system test that verifies that the
errors.report
method correctly reports an error to the errorreporting console.