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

Fix RedisProfilerEntryToActivityConverterTests for UTC offset > 0. #1680

Conversation

Oberon00
Copy link
Member

Fixes #1679.

The mock was returning a default DateTime i.e. zero from the CommandCreated property. This PR fixes it to return the current time instead. The actual value is not important for the test, but date - timezone offset must not become negative.

@Oberon00 Oberon00 requested a review from a team December 30, 2020 17:18
@Oberon00 Oberon00 force-pushed the bugfix/stackexchange-redis-test branch from 016f10e to afc59c7 Compare December 30, 2020 17:19
@codecov
Copy link

codecov bot commented Dec 30, 2020

Codecov Report

Merging #1680 (342028b) into master (e2a908e) will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1680      +/-   ##
==========================================
- Coverage   82.09%   82.06%   -0.03%     
==========================================
  Files         249      249              
  Lines        6730     6730              
==========================================
- Hits         5525     5523       -2     
- Misses       1205     1207       +2     
Impacted Files Coverage Δ
...us/Implementation/PrometheusExporterEventSource.cs 63.63% <0.00%> (-9.10%) ⬇️
...ter.ZPages/Implementation/ZPagesActivityTracker.cs 97.14% <0.00%> (-2.86%) ⬇️

@cijothomas
Copy link
Member

Need to rebase before merging.

@Oberon00
Copy link
Member Author

Can we merge this yet? I cannot give you access to my branch since it's an organization repository unfortunately.

@cijothomas cijothomas merged commit 71290dc into open-telemetry:master Jan 11, 2021
@Oberon00 Oberon00 deleted the bugfix/stackexchange-redis-test branch January 11, 2021 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RedisProfilerEntryToActivityConverterTests fails when run in a timezone with UTC offset > 0
3 participants