Browse Source

fix(MEP): Update new test, fix CI (#36920)

https://github.com/getsentry/sentry/pull/36397 was merged, but in the
meantime a new test has been merged to master, which was missed.
Markus Unterwaditzer 2 years ago
parent
commit
609e406cd2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/snuba/api/endpoints/test_organization_events_mep.py

+ 2 - 2
tests/snuba/api/endpoints/test_organization_events_mep.py

@@ -1094,7 +1094,7 @@ class OrganizationEventsMetricsEnhancedPerformanceEndpointTest(MetricsEnhancedPe
         assert meta["units"]["p50(measurements.something_custom)"] == "millisecond"
         assert meta["units"]["p50(measurements.something_custom)"] == "millisecond"
 
 
     def test_custom_measurement_size_meta_type(self):
     def test_custom_measurement_size_meta_type(self):
-        self.store_metric(
+        self.store_transaction_metric(
             1,
             1,
             metric="measurements.bytes_transfered",
             metric="measurements.bytes_transfered",
             internal_metric="d:transactions/measurements.bytes_transfered@byte",
             internal_metric="d:transactions/measurements.bytes_transfered@byte",
@@ -1102,7 +1102,7 @@ class OrganizationEventsMetricsEnhancedPerformanceEndpointTest(MetricsEnhancedPe
             tags={"transaction": "foo_transaction"},
             tags={"transaction": "foo_transaction"},
             timestamp=self.min_ago,
             timestamp=self.min_ago,
         )
         )
-        self.store_metric(
+        self.store_transaction_metric(
             100,
             100,
             metric="measurements.bytes_transfered",
             metric="measurements.bytes_transfered",
             internal_metric="d:transactions/measurements.datacenter_memory@pebibyte",
             internal_metric="d:transactions/measurements.datacenter_memory@pebibyte",