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

[Monitor Query] fix the local time zone bug in the test #20096

Merged
merged 1 commit into from
Jan 28, 2022

Conversation

KarishmaGhiya
Copy link
Member

Packages impacted by this PR

@azure/monitor-query

Issues associated with this PR

No issue opened

Describe the problem that is addressed by this PR

There was an issue with an internal unit test - convertTimespanToInterval where the date conversion to ISO string() made the string to get converted in UTC timezone causing the test to fail locally, since the timezone wasn't specified in the date and it took the local timezone as default. This issue wasn't seen on the CI as the local timezone for CI is UTC.

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Not applicable

Are there test cases added in this PR? (If not, why?)

This fixes the test case.

@ghost ghost added the Monitor Monitor, Monitor Ingestion, Monitor Query label Jan 27, 2022
@KarishmaGhiya KarishmaGhiya changed the title fix the local time zone bug in the test [Monitor Query] fix the local time zone bug in the test Jan 27, 2022
@KarishmaGhiya
Copy link
Member Author

KarishmaGhiya commented Jan 27, 2022

@willmtemple This PR fixes the bug in the test happening locally which we noticed yesterday.

@KarishmaGhiya KarishmaGhiya added the Client This issue points to a problem in the data-plane of the library. label Jan 27, 2022
Copy link
Member

@maorleger maorleger left a comment

Choose a reason for hiding this comment

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

🚀 seems fine to me assuming these inputs match reality

@KarishmaGhiya KarishmaGhiya merged commit 99689d4 into Azure:main Jan 28, 2022
sadasant pushed a commit to sadasant/azure-sdk-for-js that referenced this pull request Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Monitor Monitor, Monitor Ingestion, Monitor Query
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants