Skip to content

Commit

Permalink
fixup! fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maorleger committed Jun 22, 2021
1 parent 34ca21c commit 71500cd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sdk/core/core-rest-pipeline/test/tracingPolicy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ import {
SpanStatus,
SpanStatusCode,
SpanAttributes,
Tracer
Tracer,
SpanAttributeValue
} from "@azure/core-tracing";

class MockSpan implements Span {
private _endCalled = false;
private _status: SpanStatus = {
code: SpanStatusCode.UNSET
};
private _attributes: { [s: string]: unknown } = {};
private _attributes: SpanAttributes = {};

constructor(
private traceId: string,
Expand Down Expand Up @@ -78,7 +79,7 @@ class MockSpan implements Span {
return this;
}

setAttribute(key: string, value: unknown) {
setAttribute(key: string, value: SpanAttributeValue) {
this._attributes[key] = value;
return this;
}
Expand Down

0 comments on commit 71500cd

Please sign in to comment.