diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/common/scenario/basic.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/common/scenario/basic.ts index e5b2f7f0abc8..1a34d2a81ea2 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/common/scenario/basic.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/common/scenario/basic.ts @@ -91,7 +91,7 @@ export class BasicScenario implements Scenario { version: 1, name: "BasicScenario.Root", duration: msToTimeSpan(600), - responseCode: "0", + responseCode: SpanStatusCode.OK.toString(), success: true, properties: { foo: "bar" @@ -108,7 +108,7 @@ export class BasicScenario implements Scenario { name: "BasicScenario.Child.1", duration: msToTimeSpan(100), success: true, - resultCode: "0", + resultCode: SpanStatusCode.OK.toString(), properties: { numbers: "123" } @@ -125,7 +125,7 @@ export class BasicScenario implements Scenario { name: "BasicScenario.Child.2", duration: msToTimeSpan(100), success: true, - resultCode: "0", + resultCode: SpanStatusCode.OK.toString(), properties: { numbers: "1234" } diff --git a/sdk/monitor/monitor-opentelemetry-exporter/test/functional/trace.test.ts b/sdk/monitor/monitor-opentelemetry-exporter/test/functional/trace.test.ts index 641e5b98ddca..990611c4a18f 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/test/functional/trace.test.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/test/functional/trace.test.ts @@ -46,7 +46,7 @@ describe("Trace Exporter Scenarios", () => { }); }) .catch((e) => { - throw e; + done(e); }); }); });