mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-23 21:18:09 +02:00
fix sampling test typo
This commit is contained in:
parent
dda27de4f2
commit
7a606de88f
1 changed files with 2 additions and 2 deletions
|
@ -149,8 +149,8 @@ func TestSampling(t *testing.T) {
|
||||||
|
|
||||||
// if the request already has a traceparent header, they will always be sampled
|
// if the request already has a traceparent header, they will always be sampled
|
||||||
// regardless of the random sample rate we configured
|
// regardless of the random sample rate we configured
|
||||||
assert.InDelta(t, int32(100), sampled.Load(), 10)
|
assert.Equal(t, int32(100), sampled.Load())
|
||||||
assert.InDelta(t, int32(0), notSampled.Load(), 10)
|
assert.Equal(t, int32(0), notSampled.Load())
|
||||||
|
|
||||||
sampled.Store(0)
|
sampled.Store(0)
|
||||||
notSampled.Store(0)
|
notSampled.Store(0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue