Also check for logStream.destroyed during test in case .end() was not called to close the logStream

Signed-off-by: ovalice <31350208+ovalice@users.noreply.github.com>
This commit is contained in:
ovalice
2024-04-07 00:40:12 +02:00
parent bc4ab9fcf6
commit 8b08e98fee
@@ -204,6 +204,7 @@ describeIfKubernetes('KubernetesContainerRunner', () => {
await containerRunner.runContainer(runOptions);
expect(logStream.writableEnded).toBe(false);
expect(logStream.destroyed).toBe(false);
});
describe('with namespace test', () => {