File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -237,11 +237,17 @@ def stderr_task():
237
237
sys .stderr .writelines (proc .stderr )
238
238
threading .Thread (target = stderr_task ).start ()
239
239
240
- init_update = proc .stdout .readline ()
241
- code = proc .poll ()
242
- if code :
243
- raise subprocess .CalledProcessError (code , fake_args )
244
- print ("initial update:" , init_update )
240
+ init_update = proc .stdout .readline ().strip ()
241
+ if init_update :
242
+ print ("initial update:" , init_update )
243
+ else :
244
+ try :
245
+ code = proc .wait ()
246
+ if code :
247
+ raise subprocess .CalledProcessError (code , fake_args )
248
+ print ("no inital update, but no error code either" )
249
+ except subprocess .TimeoutExpired :
250
+ print ("no initial update, but process is still running" )
245
251
246
252
def run ():
247
253
updates = list (map (json .loads , proc .stdout ))
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def test_add_then_remove_index(self):
72
72
# There are no indices, resulting in an unsupported unindexed join.
73
73
self .publish_module (name , clear = False )
74
74
with self .assertRaises (Exception ):
75
- self .subscribe (self .JOIN_QUERY , n = 0 )()
75
+ self .subscribe (self .JOIN_QUERY , n = 0 )
76
76
77
77
self .between_publishes ()
78
78
@@ -91,4 +91,4 @@ def test_add_then_remove_index(self):
91
91
self .write_module_code (self .MODULE_CODE )
92
92
self .publish_module (name , clear = False )
93
93
with self .assertRaises (Exception ):
94
- self .subscribe (self .JOIN_QUERY , n = 0 )()
94
+ self .subscribe (self .JOIN_QUERY , n = 0 )
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def test_private_table(self):
118
118
self .spacetime ("sql" , self .address , "select * from Secret" )
119
119
120
120
with self .assertRaises (Exception ):
121
- self .subscribe ("SELECT * FROM Secret" , n = 0 )()
121
+ self .subscribe ("SELECT * FROM Secret" , n = 0 )
122
122
123
123
sub = self .subscribe ("SELECT * FROM *" , n = 1 )
124
124
self .call ("do_thing" , anon = True )
You can’t perform that action at this time.
0 commit comments