Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(middleware-flexible-checksums): disable test case #6647

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AwsCrc32c } from "@aws-crypto/crc32c";
import { describe, expect, test as it, vi } from "vitest";

import { ChecksumAlgorithm } from "./constants";
import { getCrc32ChecksumAlgorithmFunction } from "./getCrc32ChecksumAlgorithmFunction";
// import { getCrc32ChecksumAlgorithmFunction } from "./getCrc32ChecksumAlgorithmFunction";
import { selectChecksumAlgorithmFunction } from "./selectChecksumAlgorithmFunction";

describe(selectChecksumAlgorithmFunction.name, () => {
Expand All @@ -14,7 +14,7 @@ describe(selectChecksumAlgorithmFunction.name, () => {

it.each([
[ChecksumAlgorithm.MD5, mockConfig.md5],
[ChecksumAlgorithm.CRC32, getCrc32ChecksumAlgorithmFunction()],
// [ChecksumAlgorithm.CRC32, getCrc32ChecksumAlgorithmFunction()],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
--
266 |  
267 | FAIL  packages/middleware-flexible-checksums/src/selectChecksumAlgorithmFunction.spec.ts > selectChecksumAlgorithmFunction > testing CRC32
268 | AssertionError: expected [Function NodeCrc32] to deeply equal [Function NodeCrc32]
269 |  
270 | Compared values have no visual difference.
271 |  
272 | ❯ packages/middleware-flexible-checksums/src/selectChecksumAlgorithmFunction.spec.ts:22:83
273 | 20\|     [ChecksumAlgorithm.SHA256, mockConfig.sha256],
274 | 21\|   ])("testing %s", (checksumAlgorithm, output) => {
275 | 22\|     expect(selectChecksumAlgorithmFunction(checksumAlgorithm, mockConf…
276 | \|                                                                                   ^
277 | 23\|   });
278 | 24\| });
279 |  
280 | ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯

[ChecksumAlgorithm.CRC32C, AwsCrc32c],
[ChecksumAlgorithm.SHA1, mockConfig.sha1],
[ChecksumAlgorithm.SHA256, mockConfig.sha256],
Expand Down
Loading