Skip to content

Commit 8a74eab

Browse files
committed
add debug
1 parent 9c158b5 commit 8a74eab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

intake_xarray/tests/test_remote.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,19 +159,24 @@ def s3_base():
159159
import shlex
160160
import subprocess
161161

162-
proc = subprocess.Popen(shlex.split("moto_server s3 -p %s" % PORT_S3))
162+
proc = subprocess.Popen(shlex.split("moto_server s3 -p %s" % PORT_S3),
163+
stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stdin=subprocess.DEVNULL)
163164

164165
timeout = 5
165166
while timeout > 0:
166167
try:
168+
print("polling for moto server")
169+
167170
r = requests.get(endpoint_uri)
168171
if r.ok:
169172
break
170173
except:
171174
pass
172175
timeout -= 0.1
173176
time.sleep(0.1)
177+
print("server up")
174178
yield
179+
print("moto done")
175180
proc.terminate()
176181
proc.wait()
177182

0 commit comments

Comments
 (0)