@@ -7,7 +7,7 @@ import { posthogServerMock } from '@sim/testing/mocks/posthog-server.mock'
77import { tableEventsMock } from '@sim/testing/mocks/table-events.mock'
88import { beforeEach , describe , expect , it , vi } from 'vitest'
99import type { BillingAttributionSnapshot } from '@/lib/billing/core/billing-attribution'
10- import { classifyFailure , logFailureOnce } from '@/lib/core/errors/failure-log'
10+ import { logFailureOnce } from '@/lib/core/errors/failure-log'
1111import { CredentialRevokedError } from '@/lib/oauth/credential-revoked'
1212import type { ExecutionSnapshot } from '@/executor/execution/snapshot'
1313import type { ExecutionCallbacks } from '@/executor/execution/types'
@@ -267,13 +267,9 @@ describe('executeWorkflow', () => {
267267 } )
268268
269269 it . each ( [
270- [
271- 'a revoked credential, attributed to its owner,' ,
272- new CredentialRevokedError ( 'Reconnect your account' ) ,
273- 'user' ,
274- ] ,
275- [ 'an internal fault' , new Error ( 'connection pool exhausted' ) , 'internal' ] ,
276- ] as const ) ( 'logs %s once for its execution' , async ( _name , executionError , kind ) => {
270+ [ 'a revoked credential' , new CredentialRevokedError ( 'Reconnect your account' ) ] ,
271+ [ 'an internal fault' , new Error ( 'connection pool exhausted' ) ] ,
272+ ] as const ) ( 'logs %s once for its execution' , async ( _name , executionError ) => {
277273 executeWorkflowCoreMock . mockRejectedValueOnce ( executionError )
278274
279275 await expect (
@@ -287,7 +283,6 @@ describe('executeWorkflow', () => {
287283 )
288284 ) . rejects . toBe ( executionError )
289285
290- expect ( classifyFailure ( executionError ) ) . toBe ( kind )
291286 /** The boundary logged it for this execution, so a later boundary in the same run skips it. */
292287 expect (
293288 logFailureOnce ( createLogger ( 'OuterBoundary' ) , 'probe' , executionError , {
0 commit comments