We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c158b5 commit 8a74eabCopy full SHA for 8a74eab
intake_xarray/tests/test_remote.py
@@ -159,19 +159,24 @@ def s3_base():
159
import shlex
160
import subprocess
161
162
- proc = subprocess.Popen(shlex.split("moto_server s3 -p %s" % PORT_S3))
+ proc = subprocess.Popen(shlex.split("moto_server s3 -p %s" % PORT_S3),
163
+ stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stdin=subprocess.DEVNULL)
164
165
timeout = 5
166
while timeout > 0:
167
try:
168
+ print("polling for moto server")
169
+
170
r = requests.get(endpoint_uri)
171
if r.ok:
172
break
173
except:
174
pass
175
timeout -= 0.1
176
time.sleep(0.1)
177
+ print("server up")
178
yield
179
+ print("moto done")
180
proc.terminate()
181
proc.wait()
182
0 commit comments