Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sdirix committed Feb 14, 2025
1 parent 8565a63 commit be72949
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ai-openai/src/node/openai-streaming-iterator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { expect } from 'chai';
import * as sinon from 'sinon';
import { StreamingAsyncIterator } from './openai-streaming-iterator';
import { ChatCompletionStream } from 'openai/lib/ChatCompletionStream';
import { CancellationTokenSource, CancellationError, Disposable } from '@theia/core';
import { CancellationTokenSource, CancellationError } from '@theia/core';
import { LanguageModelStreamResponsePart } from '@theia/ai-core';
import { EventEmitter } from 'events';

Expand All @@ -36,8 +36,8 @@ describe('StreamingAsyncIterator', () => {
});

afterEach(() => {
if (iterator && (iterator as Disposable).dispose) {
(iterator as Disposable).dispose();
if (iterator) {
iterator.dispose();
}
cts.dispose();
console.error = consoleError;
Expand Down

0 comments on commit be72949

Please sign in to comment.