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

chore: tests are not isolated #181

Merged
merged 2 commits into from
Nov 12, 2024
Merged

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Nov 12, 2024

The upload external asset correctly test was asserting that PutObject would be called twice, but it was only called twice because a test run prior to it leaked a PubObject invocation that was counted towards the count of this test.

If the test was run by itself, the PutObject count was 1, not 2, and the test would fail.

Also remove a log statement that breaks the linter in the new repo.

The `upload external asset correctly` test was asserting that
`PutObject` would be called twice, but it was only called twice
because a test run prior to it leaked a `PubObject` invocation that
was counted towards the count of this test.

If the test was run by itself, the `PutObject` count was `1`, not `2`,
and the test would fail.
@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Nov 12, 2024
Merged via the queue into main with commit 33027b3 Nov 12, 2024
8 checks passed
@aws-cdk-automation aws-cdk-automation deleted the huijbers/non-isolated-tests branch November 12, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants