Skip to content

Commit

Permalink
Fix memory units. (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored Jul 7, 2022
1 parent 782a4c9 commit d19e5d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integration/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def _factory() -> dict[str, Any]:
"container": {
"image": "ubuntu",
"command": "true",
"resources": {"cpu": 0.1, "memory_mb": 32},
"resources": {"cpu": 0.1, "memory": 32 * 2**20},
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_jobs_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ async def test_save_pending_job(
image_tag: str,
) -> None:
resources = Resources(
memory=16**10 * 1024**2,
memory=2**60,
cpu=0.1,
gpu=None,
shm=False,
Expand Down

0 comments on commit d19e5d2

Please sign in to comment.