Skip to content
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]Store upload time after the upload is completed #6083

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

SwikritiT
Copy link
Contributor

Description

PR #6047 made some changes in the upload of the file. This PR enhances the changes made by that PR by storing time of upload only after the file has completely been uploaded.

Related Issue

Motivation and Context

How Has This Been Tested?

  • Locally
  • CI

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@ownclouders
Copy link
Contributor

Results for oCISSharingPubExpAndRoles https://drone.owncloud.com/owncloud/web/20599/66/1
💥 The acceptance tests pipeline failed. The build has been cancelled.

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

Now that I look at the previous code closely, probably httpHelper.put() has returned (and the API request/response sequence has all finished) and then .then() happens. So maybe the previous code was OK.

But writing out the new code in a clear sequential manner helps future readers to see that the upload time stamp is intentionally remembered at the end of the function.

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

Successfully merging this pull request may close these issues.

Improve pause between uploads in acceptance tests
3 participants