Skip to content

Commit fc7a946

Browse files
committed
fix unit test
1 parent a46ebca commit fc7a946

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,7 @@ describe('AwsAuthenticator', () => {
124124
expect(result[X_AMZ_SECURITY_TOKEN_HEADER]).not.toBe(oldHeaders[X_AMZ_SECURITY_TOKEN_HEADER]);
125125
expect(result[X_AMZ_CONTENT_SHA256_HEADER]).not.toBe(oldHeaders[X_AMZ_CONTENT_SHA256_HEADER]);
126126
} else {
127-
expect(result[AUTHORIZATION_HEADER]).toBe(oldHeaders[AUTHORIZATION_HEADER]);
128-
expect(result[X_AMZ_DATE_HEADER]).toBe(oldHeaders[X_AMZ_DATE_HEADER]);
129-
expect(result[X_AMZ_SECURITY_TOKEN_HEADER]).toBe(oldHeaders[X_AMZ_SECURITY_TOKEN_HEADER]);
130-
expect(result[X_AMZ_CONTENT_SHA256_HEADER]).toBe(oldHeaders[X_AMZ_CONTENT_SHA256_HEADER]);
127+
expect(result).toBe(undefined);
131128
}
132129
});
133130
});

0 commit comments

Comments
 (0)