File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ def get_nested_attribute(instance, name):
11
11
:param str name: a dot-separated nested attribute name e.g. "a.b.c", "a.b", or "a"
12
12
:return any:
13
13
"""
14
- # This is a random number used instead of `None` to signal that an attribute is missing and does not just have a
15
- # `None` value.
14
+ # This is a random number used as a default instead of `None` to signal that an attribute is missing rather than
15
+ # existing and just having `None` as its value.
16
16
missing_indicator = "7027907024295393"
17
17
attribute = pydash .get (instance , name , default = missing_indicator )
18
18
Original file line number Diff line number Diff line change @@ -778,6 +778,7 @@ def run_function(*args, **kwargs):
778
778
parent = MockService (backend = BACKEND , children = {child .id : child })
779
779
child .serve ()
780
780
781
+ # Trigger the heartbeat check straight away.
781
782
with patch (
782
783
"octue.cloud.emulators._pub_sub.MockService.answer" ,
783
784
functools .partial (child .answer , heartbeat_interval = 0.1 ),
You can’t perform that action at this time.
0 commit comments