-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(test): Streaming mock fixes. Mock cleanup. #549
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File was redundant.
@@ -16,6 +16,10 @@ export const setupMockStreamingProcessor = ( | |||
errorTimeoutSeconds: number = 0, | |||
initTimeoutMs: number = 0, | |||
) => { | |||
let initTimeoutHandle: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mock stream was not closing its timer handles so they interfered with other tests.
@@ -72,7 +72,8 @@ describe('sdk-client object', () => { | |||
.mockReturnValue('/stream/path'); | |||
}); | |||
|
|||
afterEach(() => { | |||
afterEach(async () => { | |||
await ldc.close(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Close the client so timers and things stop.
No description provided.