Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Antanukas
Copy link
Collaborator

@Antanukas Antanukas commented Sep 22, 2021

What this PR does / why we need it:

Small refactor to query_test.go to use runServer helper to remove some duplicated test code. I have started using MemStore instead of mocked one. It seems it might have revealed race condition in asyncDownsampler constructor that I fixed by moving lock.

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:

None

Does this PR require updating code package or user-facing documentation?:

None

@Antanukas Antanukas marked this pull request as ready for review September 23, 2021 09:33
go func() {
asyncDownsampler.Lock()
defer asyncDownsampler.Unlock()

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

without this change TestGRPCBackend fails with nil pointer panic.

@codecov
Copy link

codecov bot commented Sep 23, 2021

Codecov Report

Merging #3767 (1478107) into master (1478107) will not change coverage.
The diff coverage is n/a.

❗ Current head 1478107 differs from pull request most recent head 5ec4876. Consider uploading reports for the commit 5ec4876 to get more accurate results

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3767   +/-   ##
======================================
  Coverage    56.9%   56.9%           
======================================
  Files         552     552           
  Lines       63007   63007           
======================================
  Hits        35896   35896           
  Misses      23925   23925           
  Partials     3186    3186           
Flag Coverage Δ
aggregator 63.4% <0.0%> (ø)
cluster ∅ <0.0%> (∅)
collector 58.4% <0.0%> (ø)
dbnode 60.6% <0.0%> (ø)
m3em 46.4% <0.0%> (ø)
metrics 19.7% <0.0%> (ø)
msg 74.4% <0.0%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1478107...5ec4876. Read the comment docs.

@Antanukas Antanukas enabled auto-merge (squash) September 27, 2021 12:26
@Antanukas Antanukas merged commit a9f8c44 into master Sep 27, 2021
@Antanukas Antanukas deleted the antanas/use-run-server branch September 27, 2021 12:43
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.

2 participants