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: avoid races because of parallel ioredis tests #303

Conversation

Flarna
Copy link
Member

@Flarna Flarna commented Jan 13, 2021

ioredis tests run parallel for serverl node versions using the same redis instance.

Add a random part to keys to avoid that one run impacts others.

Additionally improve lua test asserts as the script may be already cached by redis resulting in one span less.

ioredis tests run parallel for serverl node versions using the same
redis instance.

Add a random part to keys to avoid that one run impacts others.

Additionally improve lua test asserts as the script may be already
cached by redis resulting in one span less.
@Flarna Flarna requested a review from a team January 13, 2021 22:53
@dyladan
Copy link
Member

dyladan commented Jan 13, 2021

I was just working on this haha

@codecov
Copy link

codecov bot commented Jan 13, 2021

Codecov Report

Merging #303 (e352126) into master (db464de) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #303      +/-   ##
==========================================
- Coverage   95.44%   95.39%   -0.05%     
==========================================
  Files         115      115              
  Lines        6055     6061       +6     
  Branches      590      591       +1     
==========================================
+ Hits         5779     5782       +3     
- Misses        276      279       +3     
Impacted Files Coverage Δ
.../opentelemetry-plugin-ioredis/test/ioredis.test.ts 94.40% <0.00%> (-0.90%) ⬇️

Copy link
Member

@vmarchaud vmarchaud left a comment

Choose a reason for hiding this comment

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

👍

@naseemkullah naseemkullah merged commit 366cbae into open-telemetry:master Jan 14, 2021
@Flarna Flarna deleted the fix-ioredis-test-races branch January 14, 2021 12:48
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.

4 participants