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

[AppConfig] Fix flaky tests #30577

Merged
merged 3 commits into from
Jun 1, 2023

Conversation

YalinLi0312
Copy link
Member

  • The test for accept_time is pretty flaky, it assumes the number of configuration settings on one day ago should be less than the number of configuration settings listing at current time(without passing parameter accept_time). The assumption is not always correct, for example, when there are some configuration settings created and deleted one day ago, we can still get the configuration settings in the list result with accept_time equals to one day ago, but it is no longer in the list result at current time. So it doesn't make sense to compare all_inclusive vs exclude_today. Also updated the sample test in docstring.
  • Updated the description of parameter accept_time in docstring to be more clearer.
  • Since the configuration setting's last updated time is saved in utc time, so changed to use utc time in docstring samples.

@YalinLi0312 YalinLi0312 added Client This issue points to a problem in the data-plane of the library. App Configuration Azure.ApplicationModel.Configuration labels May 31, 2023
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@YalinLi0312 YalinLi0312 merged commit 97511f2 into Azure:main Jun 1, 2023
@YalinLi0312 YalinLi0312 deleted the yall-appconfig-flakytests branch June 1, 2023 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Configuration Azure.ApplicationModel.Configuration Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants