Skip to content

Commit 3eeb3e9

Browse files
committed
address pr comments
1 parent 4117590 commit 3eeb3e9

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/cp_test.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { randomUUID } from 'crypto';
1616
import { sleep } from './util';
1717

1818
describe('Cp', () => {
19-
let tmpDir: string | undefined;
19+
let tmpDir = '';
2020

2121
beforeEach(() => {
2222
tmpDir = `${tmpdir()}/${randomUUID()}`;
@@ -31,11 +31,6 @@ describe('Cp', () => {
3131

3232
describe('cpFromPod', () => {
3333
it('should run create tar command to a url', async () => {
34-
// make the compile happy
35-
if (!tmpDir) {
36-
throw new Error('tmpDir not initialized');
37-
}
38-
3934
const kc = new KubeConfig();
4035
const fakeWebSocketInterface: WebSocketInterface = mock(WebSocketHandler);
4136
const fakeWebSocket: WebSocket.WebSocket = mock(WebSocket);
@@ -106,11 +101,6 @@ describe('Cp', () => {
106101

107102
describe('cpToPod', () => {
108103
it('should run extract tar command to a url', async () => {
109-
// make the compile happy
110-
if (!tmpDir) {
111-
throw new Error('tmpDir not initialized');
112-
}
113-
114104
const kc = new KubeConfig();
115105
const fakeWebSocketInterface: WebSocketInterface = mock(WebSocketHandler);
116106
const fakeWebSocket: WebSocket.WebSocket = mock(WebSocket) as WebSocket.WebSocket;

0 commit comments

Comments
 (0)