Skip to content

[FIX] cloudlet: Add check for Cloudlet completion in getRemainingCloudletLength() #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

erfanara
Copy link

This should fix #208

Changes Made:

  • Method Update: Added a check in getRemainingCloudletLength() to return 0 if the cloudlet is complete.
  • Test Adjustments:
    • Updated CloudletSchedulerSingleServiceTest.java to assert that the remaining length is 0 for finished cloudlets and that isFinished() returns true.
    • Added assertions in CloudletTest.java to verify initial states of Cloudlet.

erfanara added 2 commits May 16, 2025 22:26
This commit adds additional tests to verify the correct behavior of the Cloudlet finalization process. It includes checks for the remaining length of the Cloudlet after completion and ensures that the Cloudlet status is accurately updated.
@deRemo
Copy link
Member

deRemo commented May 22, 2025

@erfanara thanks for your contribution, I was out for a conference, I'll be busy the rest of the week as well. I'll get back to your patch as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] miscalculation in cloudlet.getRemainingCloudletLength() which results in corrupted cloudlet.isFinished() function
2 participants