Skip to content

Commit

Permalink
reverts prob value
Browse files Browse the repository at this point in the history
Signed-off-by: Afzal Ansari <[email protected]>
  • Loading branch information
afzal442 committed Jul 17, 2023
1 parent 056b81d commit 7e157eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/all-in-one/all_in_one_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ func createTrace(t *testing.T) {
resp, err := httpClient.Do(req)
require.NoError(t, err)
traceResponse := resp.Header.Get("traceresponse")
parts := strings.Split(traceResponse, "-")
traceID := parts[1]
req.Header.Set("trace-id", traceID)
traceID := strings.Split(traceResponse, "-")[1]
// Update the URL with the traceID
getTraceURL += traceID
resp.Body.Close()
Expand Down Expand Up @@ -128,7 +126,7 @@ func getSamplingStrategy(t *testing.T) {
resp.Body.Close()

assert.NotNil(t, queryResponse.ProbabilisticSampling)
assert.EqualValues(t, 0.001, queryResponse.ProbabilisticSampling.SamplingRate)
assert.EqualValues(t, 1, queryResponse.ProbabilisticSampling.SamplingRate)
}

func healthCheck(t *testing.T) {
Expand Down

0 comments on commit 7e157eb

Please sign in to comment.