Skip to content

Fix TestTaskLeaseRenewal test failure#7765

Merged
raulchen merged 1 commit intoray-project:masterfrom
antgroup:fix_TestTaskLeaseRenewal_test_failure
Mar 29, 2020
Merged

Fix TestTaskLeaseRenewal test failure#7765
raulchen merged 1 commit intoray-project:masterfrom
antgroup:fix_TestTaskLeaseRenewal_test_failure

Conversation

@ffbin
Copy link
Copy Markdown
Contributor

@ffbin ffbin commented Mar 27, 2020

Why are these changes needed?

When sleep_time = 10 * initial_lease_period_ms_, test case fails, because the AsyncAddTaskLease function is expected to be called four times, but only three times. It's hard to determine the sleep_time value, so let's double it for now.

Related issue number

Checks

@AmplabJenkins
Copy link
Copy Markdown

Can one of the admins verify this patch?

@AmplabJenkins
Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/23778/
Test FAILed.

Copy link
Copy Markdown
Collaborator

@edoakes edoakes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We really should be using a mocked clock here instead of relying on timing, but this seems fine for now.

@raulchen raulchen merged commit 6ce8b63 into ray-project:master Mar 29, 2020
@raulchen raulchen deleted the fix_TestTaskLeaseRenewal_test_failure branch March 29, 2020 03:18
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.

4 participants