Skip to content

Commit c977b00

Browse files
committed
fix test case
Signed-off-by: Cruz Zhao <[email protected]>
1 parent 1232a26 commit c977b00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/test_tensor_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,15 +512,15 @@ class TestMooncakeBenchmark(MooncakeTestBase):
512512
# Benchmark Settings
513513
BENCH_ITERATIONS = 5
514514
TENSOR_SIZE_MB = 16
515-
TOTAL_SIZE_GB = 256
515+
TOTAL_SIZE_MB = 256
516516

517517
def setUp(self):
518518
"""Benchmark-specific setUp."""
519519
# 1. Call parent setUp to clean the store (remove_all)
520520
super().setUp()
521521

522522
# 2. Generate test data
523-
total_bytes = self.TOTAL_SIZE_GB * 1024**3
523+
total_bytes = int(self.TOTAL_SIZE_MB * 1024**2)
524524
tensor_bytes = self.TENSOR_SIZE_MB * 1024**2
525525
self.num_tensors = max(1, total_bytes // tensor_bytes)
526526

0 commit comments

Comments
 (0)