Skip to content

fix: resolve test assertion and VCR matching issues#8

Merged
seuros merged 1 commit intomasterfrom
fix/test-failures
Jan 28, 2026
Merged

fix: resolve test assertion and VCR matching issues#8
seuros merged 1 commit intomasterfrom
fix/test-failures

Conversation

@seuros
Copy link
Copy Markdown
Owner

@seuros seuros commented Jan 28, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes test issues related to VCR cassette matching and improves a test assertion in the backtrace processor test.

Changes:

  • Added VCR_OPTIONS constant to configure VCR to match requests only on method and URI (not body) for OpenObserve adapter tests, since payloads contain dynamic timestamps and trace IDs
  • Improved the "clear cache" test by populating the cache before clearing it and adding an explicit assertion

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/openobserve_adapter_test.rb Added VCR_OPTIONS constant and applied it to all VCR.use_cassette calls to avoid matching issues with dynamic payload data
test/backtrace_processor_test.rb Enhanced the "clear cache" test by populating the cache first and using assert_nothing_raised for proper verification

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@seuros seuros force-pushed the fix/test-failures branch 2 times, most recently from 624233d to 86f1742 Compare January 28, 2026 16:31
@seuros seuros force-pushed the fix/test-failures branch from 86f1742 to e098475 Compare January 28, 2026 16:31
@seuros seuros merged commit 76c8a96 into master Jan 28, 2026
12 checks passed
@seuros seuros deleted the fix/test-failures branch January 28, 2026 17:50
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.

2 participants