Skip to content

Commit e36a136

Browse files
committed
fixed stubbing method
1 parent 2564edd commit e36a136

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/test/exporter/otlp/aws/common/otlp-aws-base-exporter.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,14 @@ export abstract class OTLPAwsBaseExporterTest {
161161
private testSigningFails(done: () => void) {
162162
this.sandbox.restore();
163163
this.sandbox = sinon.createSandbox();
164-
165164
this.sandbox.stub(AwsAuthenticator.prototype, 'authenticate').resolves(undefined);
166165

167166
const exporterClass = this.getExporter();
168167
const exporter = new exporterClass(this.getEndpoint() + this.getEndpointPath());
169168

170169
exporter.export([], (result: ExportResult) => {
171170
expect(result.code).toBe(ExportResultCode.FAILED);
172-
expect(this.scope.isDone()).toBe(true);
171+
expect(this.scope.isDone()).toBe(false);
173172
done();
174173
});
175174
}

0 commit comments

Comments
 (0)