-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Erroneous apply_async call (#29032)
- Loading branch information
1 parent
84c739c
commit 7b07c67
Showing
2 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import pytest | ||
|
||
from sentry.tasks.low_priority_symbolication import calculation_magic | ||
from sentry.utils import redis | ||
|
||
|
||
@pytest.fixture | ||
def redis_cluster() -> redis._RedisCluster: | ||
return redis.redis_clusters.get("default") | ||
from sentry.processing import realtime_metrics | ||
from sentry.tasks.low_priority_symbolication import calculation_magic, scan_for_suspect_projects | ||
|
||
|
||
def test_calculation_magic(): | ||
assert not calculation_magic([], []) | ||
|
||
|
||
def test_scan_for_suspect_projects() -> None: | ||
realtime_metrics.increment_project_event_counter(17, 0) | ||
scan_for_suspect_projects() |