Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
Fix test names
Browse files Browse the repository at this point in the history
  • Loading branch information
Onwukike Ibe committed Jan 12, 2017
1 parent ecd283b commit d58cbef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/span.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,14 @@ describe('span should', () => {
});
});

describe('Finalize spans that', () => {
it ('inherit sampling decision is finalized', () => {
describe('span sampling finalizer', () => {
it ('should trigger on a span that inherits a sampling decision', () => {
let childSpan = tracer.startSpan('child-span', {childOf: span});
assert.isOk(span.context().samplingFinalized);
assert.isOk(childSpan.context().samplingFinalized);
});

it ('set the sampling priority to enable debug', () => {
it ('should trigger on a span that set the sampling priority', () => {
span.setTag(opentracing.Tags.SAMPLING_PRIORITY, 1);
assert.isOk(span.context().samplingFinalized);

Expand All @@ -234,17 +234,17 @@ describe('span should', () => {
assert.isOk(unsampledSpan.context().samplingFinalized);
});

it ('have finished', () => {
it ('should trigger on a finish()-ed span', () => {
span.finish();
assert.isOk(span.context().samplingFinalized);
});

it ('has called setOperationName', () => {
it ('should trigger after calling setOperationName', () => {
span.setOperationName('fry');
assert.isOk(span.context().samplingFinalized);
});

it ('are injected into headers', () => {
it ('should trigger when a span is injected into headers', () => {
let headers = {};
tracer.inject(span.context(), opentracing.FORMAT_HTTP_HEADERS, headers);

Expand Down

0 comments on commit d58cbef

Please sign in to comment.