Skip to content

Commit

Permalink
ci(iast): fix flaky test (#7677)
Browse files Browse the repository at this point in the history
## Checklist

- [x] Change(s) are motivated and described in the PR description.
- [x] Testing strategy is described if automated tests are not included
in the PR.
- [x] Risk is outlined (performance impact, potential for breakage,
maintainability, etc).
- [x] Change is maintainable (easy to change, telemetry, documentation).
- [x] [Library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
are followed. If no release note is required, add label
`changelog/no-changelog`.
- [x] Documentation is included (in-code, generated user docs, [public
corp docs](https://github.com/DataDog/documentation/)).
- [x] Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist

- [x] Title is accurate.
- [x] No unnecessary changes are introduced.
- [x] Description motivates each change.
- [x] Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes unless absolutely necessary.
- [x] Testing strategy adequately addresses listed risk(s).
- [x] Change is maintainable (easy to change, telemetry, documentation).
- [x] Release note makes sense to a user of the library.
- [x] Reviewer has explicitly acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment.
- [x] Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
- [x] If this PR touches code that signs or publishes builds or
packages, or handles credentials of any kind, I've requested a review
from `@DataDog/security-design-and-guidance`.
- [x] This PR doesn't touch any of that.
  • Loading branch information
avara1986 committed Nov 20, 2023
1 parent d0e50ca commit 3aad540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/appsec/iast_memcheck/test_iast_mem_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def test_stacktrace_memory_check_no_native_direct_call():
assert line_number > 0


@pytest.mark.limit_leaks("370 B", filter_fn=IASTFilter())
@pytest.mark.limit_leaks("440 B", filter_fn=IASTFilter())
def test_stacktrace_memory_empty_byte_check():
for _ in range(LOOPS):
frame_info = func_1("empty_byte", "2", "3")
Expand All @@ -159,7 +159,7 @@ def test_stacktrace_memory_empty_byte_check():
assert line_number > 0


@pytest.mark.limit_leaks("370 B", filter_fn=IASTFilter())
@pytest.mark.limit_leaks("440 B", filter_fn=IASTFilter())
def test_stacktrace_memory_empty_string_check():
for _ in range(LOOPS):
frame_info = func_1("empty_string", "2", "3")
Expand Down

0 comments on commit 3aad540

Please sign in to comment.