Skip to content

Commit f9c2073

Browse files
fix: clear mocks to fix handler test failures (#2495)
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
1 parent 5e80af3 commit f9c2073

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/httpserve/handlers/tools_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ func (suite *HandlerTestSuite) SetupTest() {
335335
err = db.Job.TruncateRiverTables(ctx)
336336
require.NoError(t, err)
337337

338+
// reset mock email sender so messages don't bleed across tests
339+
suite.mockEmailSender().Reset()
340+
338341
// add db to test client and wire integration runtime so email dispatch works
339342
db.IntegrationsRuntime = suite.sharedIntegrationsRT
340343
suite.db = db

0 commit comments

Comments
 (0)