Skip to content

fix: mail test#966

Merged
hwbrzzl merged 1 commit intomasterfrom
bowen/fix-mail
Mar 22, 2025
Merged

fix: mail test#966
hwbrzzl merged 1 commit intomasterfrom
bowen/fix-mail

Conversation

@hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented Mar 22, 2025

📑 Description

✅ Checks

  • Added test cases for my code

Copilot AI review requested due to automatic review settings March 22, 2025 15:38
@hwbrzzl hwbrzzl requested a review from a team as a code owner March 22, 2025 15:38
Copy link
Contributor

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 issues related to the mail test by updating the test suite initialization and enhancing configuration mocks for queue connections.

  • Adds a call to suite.Run for ApplicationTestSuite in TestApplicationTestSuite.
  • Updates the redis queue configuration expectations in TestQueueMailWithConnection.
  • Introduces a new expectation for the async queue size in the mock configuration.
Comments suppressed due to low confidence (2)

mail/application_test.go:109

  • Confirm that the expectation of calling the redis queue configuration method twice is intentional. If the method is only invoked once in production, consider revising to Once().
s.mockConfig.On("GetString", "queue.connections.redis.queue", "default").Return("default").Twice()

mail/application_test.go:171

  • [nitpick] Double-check that this expectation for the async queue size is necessary and not redundant with similar configuration mocks elsewhere. If consolidation is possible, please adjust for consistency.
mockConfig.On("GetInt", "queue.connections.async.size", 100).Return(100)

@codecov
Copy link

codecov bot commented Mar 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.31%. Comparing base (8b4882c) to head (ea71f3e).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #966   +/-   ##
=======================================
  Coverage   69.31%   69.31%           
=======================================
  Files         160      160           
  Lines       10713    10713           
=======================================
  Hits         7426     7426           
  Misses       2951     2951           
  Partials      336      336           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hwbrzzl hwbrzzl merged commit 9c3ffb9 into master Mar 22, 2025
14 checks passed
@hwbrzzl hwbrzzl deleted the bowen/fix-mail branch March 22, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants