-
Notifications
You must be signed in to change notification settings - Fork 159
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
[Tests-Only]Fixed failing test on public link share #3852
Conversation
265bde5
to
b63a8a6
Compare
if (timeSinceLastShare <= 1001) { | ||
await client.pause(1001 - timeSinceLastShare) | ||
} | ||
timeOfLastShareOperation = Date.now() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be updated after sharing as sharing might take some time
d65b4dd
to
81d5d1b
Compare
@@ -510,6 +529,7 @@ Given( | |||
null, | |||
{ password: password } | |||
) | |||
await updateTimeOfLastShareOperation() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add this line in shareFilefolder()
function as there are other steps too that do share.
81d5d1b
to
928b9bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
928b9bf
to
a4042ad
Compare
Description
The test
Scenario: user edits the password of an already existing public link and tries to access with old password
was failing because two shares were created fast with the samestime
. So, a new function is created to wait for at least one second between the creation of shares.Related Issue
How Has This Been Tested?
Types of changes
Checklist: