[Bugfix] Set KVTransferConfig.engine_id in post_init (#18576)

Signed-off-by: Linkun Chen <github@lkchen.net>
This commit is contained in:
lkchen
2025-05-22 19:54:42 -07:00
committed by GitHub
parent 93ecb8139c
commit e44d8ce8c7
3 changed files with 13 additions and 1 deletions

View File

@@ -239,3 +239,11 @@ def get_connector_events() -> dict[str, list[str]]:
print(f"[ERROR] Could not read connector events for {name}: {e}")
return connector_events
def test_engine_id_conflict():
configs = [KVTransferConfig() for _ in range(2)]
ids = [config.engine_id for config in configs]
assert ids[0] != ids[1], (
"Engine IDs should be different for different configs. "
f"Got {ids}")