File tree 2 files changed +1
-5
lines changed
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ def create_subscriber_process(
87
87
)
88
88
if start_process :
89
89
p .start ()
90
- self .should_reload ()
91
90
return p
92
91
93
92
def set_update_callback (self , fn_name : Callable ):
@@ -113,7 +112,7 @@ def update(self):
113
112
114
113
def should_reload (self ):
115
114
try :
116
- if self .parent_conn .poll ():
115
+ if self .parent_conn .poll (None ):
117
116
message = self .parent_conn .recv ()
118
117
print (f"message:{ message } " )
119
118
return True
Original file line number Diff line number Diff line change @@ -39,9 +39,6 @@ def test_pg_watcher_init(self):
39
39
def test_update_pg_watcher (self ):
40
40
assert pg_watcher .update () is True
41
41
42
- def test_not_reload (self ):
43
- assert not pg_watcher .should_reload ()
44
-
45
42
def test_default_update_callback (self ):
46
43
assert pg_watcher .update_callback () is None
47
44
You can’t perform that action at this time.
0 commit comments