Skip to content

Commit

Permalink
fix some var names
Browse files Browse the repository at this point in the history
  • Loading branch information
gargnitingoogle committed Oct 4, 2024
1 parent 918daab commit 0e196fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions perfmetrics/scripts/testing_on_gke/examples/utils/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,28 @@ def setUpClass(self):
self.end = '2024-09-25 07:06:22 UTC'

def test_get_memory(self):
low1, high1 = get_memory_from_monitoring_api(
low, high = get_memory_from_monitoring_api(
project_id=self.project_id,
cluster_name=self.cluster_name,
pod_name=self.pod_name,
namespace_name=self.namespace_name,
start_epoch=self.start_epoch,
end_epoch=self.end_epoch,
)
self.assertLessEqual(low1, high1)
self.assertGreater(high1, 0)
self.assertLessEqual(low, high)
self.assertGreater(high, 0)

def test_get_cpu(self):
low1, high1 = get_cpu_from_monitoring_api(
low, high = get_cpu_from_monitoring_api(
project_id=self.project_id,
cluster_name=self.cluster_name,
pod_name=self.pod_name,
namespace_name=self.namespace_name,
start_epoch=self.start_epoch,
end_epoch=self.end_epoch,
)
self.assertLessEqual(low1, high1)
self.assertGreater(high1, 0)
self.assertLessEqual(low, high)
self.assertGreater(high, 0)

def test_timestamp_to_epoch(self):
self.assertEqual(timestamp_to_epoch('2024-08-21T19:20:25'), 1724268025)
Expand Down

0 comments on commit 0e196fe

Please sign in to comment.