Skip to content

Commit 567c6f2

Browse files
vvnpn-nvclaude
andcommitted
fix: compare scheduler_type enum value, not enum object
BackendSchedulerType.KAI is an enum, not a string. Use .value for comparison. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c52be43 commit 567c6f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/service/core/config/tests/test_configmap_loader_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def test_backend_list_from_snapshot(self):
217217
self.assertEqual(len(result), 1)
218218
self.assertEqual(result[0].name, 'test-be')
219219
self.assertEqual(
220-
result[0].scheduler_settings.scheduler_type, 'kai')
220+
result[0].scheduler_settings.scheduler_type.value, 'kai')
221221

222222
def test_backend_names_from_snapshot(self):
223223
"""Backend.list_names_from_db returns names from snapshot."""

0 commit comments

Comments
 (0)