Pin sample to test

on github.com the glob evaluated such that the sample could not be
modified according to the test-setup
This commit is contained in:
Klaas van Schelven
2024-09-19 15:01:07 +02:00
parent b2b63c9664
commit c50ae7afe7

View File

@@ -338,7 +338,7 @@ class IngestViewTestCase(TransactionTestCase):
SAMPLES_DIR = os.getenv("SAMPLES_DIR", "../event-samples")
event_samples = glob(SAMPLES_DIR + "/*/*.json")
event_samples = glob(SAMPLES_DIR + "/sentry/mobile1-xen.json") # this one has 'exception.values[0].type'
if len(event_samples) == 0:
raise Exception(f"No event samples found in {SAMPLES_DIR}; I insist on having some to test with.")