mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-01 16:18:27 +00:00
chore: fix pylint
This commit is contained in:
parent
986ada3aeb
commit
27d7f9f6b9
@ -88,12 +88,7 @@ async def test_send_heartbeat(model_registry, model_instance):
|
||||
await model_registry.register_instance(model_instance)
|
||||
last_heartbeat = datetime.now() - timedelta(seconds=10)
|
||||
model_instance.last_heartbeat = last_heartbeat
|
||||
assert (
|
||||
await model_registry.send_heartbeat(
|
||||
model_instance
|
||||
)
|
||||
== True
|
||||
)
|
||||
assert await model_registry.send_heartbeat(model_instance) == True
|
||||
assert (
|
||||
model_registry.registry[model_instance.model_name][0].last_heartbeat
|
||||
> last_heartbeat
|
||||
|
Loading…
Reference in New Issue
Block a user