Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Fix baggage/debug header tests to not defer in loops #315

Merged

Conversation

zcahana
Copy link
Contributor

@zcahana zcahana commented May 24, 2018

Which problem is this PR solving?

This PR fixes the unit tests for baggage/debug headers so that the defer closer.Close() statement is not executed in a for loop, but rather within a nested test function execution.

Addressing @yurishkuro's review comment from #313.

Signed-off-by: Zvi Cahana [email protected]

This patch fixes the unit tests for baggage/debug headers so
that the "defer closer.Close()" statement is not executed in
a for loop, but rather within a nested test function execution.

Signed-off-by: Zvi Cahana <[email protected]>
@codecov
Copy link

codecov bot commented May 24, 2018

Codecov Report

Merging #315 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #315      +/-   ##
==========================================
+ Coverage    86.8%   86.84%   +0.03%     
==========================================
  Files          54       54              
  Lines        2956     2956              
==========================================
+ Hits         2566     2567       +1     
+ Misses        275      273       -2     
- Partials      115      116       +1
Impacted Files Coverage Δ
internal/baggage/remote/restriction_manager.go 97.18% <0%> (+1.4%) ⬆️

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 15976a5...5bd9c59. Read the comment docs.

@black-adder black-adder merged commit f1239c9 into jaegertracing:master May 24, 2018
@black-adder
Copy link
Contributor

thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants