Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fix job exporter test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
suiguoxin committed Aug 6, 2020
1 parent f1b98e1 commit 45253ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/job-exporter/test/test_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def test_parse_from_labels(self):
"0",
"0,1,",
"application_1522829300813_1943",
12345)
12345,
"default")

gpu_ids, labels = ContainerCollector.parse_from_labels(inspect_result, None)
self.assertEqual(["0", "1"], gpu_ids)
Expand All @@ -58,7 +59,8 @@ def test_parse_from_labels(self):
"job_name": "trialslot_nnimain_d65bc5ac",
"role_name": "tuner",
"task_index": "0",
"job_instance_id": "application_1522829300813_1943"}
"job_instance_id": "application_1522829300813_1943",
"virtual_cluster":"default"}

self.assertEqual(target_labels, labels)

Expand Down

0 comments on commit 45253ed

Please sign in to comment.