Skip to content

Commit e2d01e8

Browse files
committed
added _preload_content=False to stream call
1 parent 1e73ada commit e2d01e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubernetes/e2e_test/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def test_pod_apis(self):
119119
resp = stream(api.connect_get_namespaced_pod_exec, name, 'default',
120120
command=exec_command,
121121
stderr=False, stdin=False,
122-
stdout=True, tty=False)
122+
stdout=True, tty=False, _preload_content=False)
123123
print('EXEC response : %s (%s)' % (repr(resp), type(resp)))
124124
self.assertIsInstance(resp, str)
125125
self.assertEqual(3, len(resp.splitlines()))
@@ -131,7 +131,7 @@ def test_pod_apis(self):
131131
command=exec_command,
132132
stderr=False, stdin=False,
133133
stdout=True, tty=False,
134-
binary=True)
134+
binary=True, _preload_content=False)
135135
print('EXEC response : %s (%s)' % (repr(resp), type(resp)))
136136
self.assertIsInstance(resp, bytes)
137137
self.assertEqual("This is a test string", gzip.decompress(resp).decode('utf-8'))

0 commit comments

Comments
 (0)