Skip to content

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

Merged
KarishmaGhiya merged 1 commit intoAzure:mainfrom
KarishmaGhiya:monitor-query-test-verify
Jan 28, 2022
Merged

[Monitor Query] fix the local time zone bug in the test#20096
KarishmaGhiya merged 1 commit intoAzure:mainfrom
KarishmaGhiya:monitor-query-test-verify

Conversation

@KarishmaGhiya
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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