forked from googleapis/cloud-trace-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wrong test/assertion in test-trace-http (googleapis#615)
The wrong test is 'should not trace api requests'. The header name to check should be TRACE_AGENT_REQUEST_HEADER, not TRACE_CONTEXT_HEADER_NAME. Also the assertion should be done against the number of spans, not against the number of traces. Also fix the order of arguments to `assert.equal()` calls. The first argument must be the actual result and the second the expected value.
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters