Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Fix stackdriver test (#363)
Browse files Browse the repository at this point in the history
* Fix stackdriver test

* test result.code
  • Loading branch information
mayurkale22 committed Feb 26, 2019
1 parent 0267db1 commit 8572750
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,8 @@ describe('Stackdriver Trace Exporter', function() {
rootSpan.end();

return failExporter.publish([rootSpan]).then(result => {
assert.ok(
result.message.indexOf(
'batchWriteSpans error: Request had invalid authentication credentials.') >=
0);
assert.equal(result.code, 401);
assert.ok(result.message.indexOf('batchWriteSpans error') >= 0);

assert.strictEqual(
failExporter.failBuffer[0].traceId,
Expand Down

0 comments on commit 8572750

Please sign in to comment.