Skip to content

Commit

Permalink
test: updated delayed_spans_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Angith committed Dec 20, 2024
1 parent c8e5f62 commit 48f8e36
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions delayed_spans_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ func TestPartiallyFlushDelayedSpans(t *testing.T) {
// serverless agent should not be present for this test to pass.
// following check is added for debugging random failures in the unit tests of delayed spans
// TODO: remove it once the issue is resolved.
_, isURLPresent := os.LookupEnv("INSTANA_ENDPOINT_URL")
_, isKeyPresent := os.LookupEnv("INSTANA_AGENT_KEY")
assert.Equal(t, false, isURLPresent)
assert.Equal(t, false, isKeyPresent)
url, _ := os.LookupEnv("INSTANA_ENDPOINT_URL")
assert.Equal(t, "", url)

assert.Len(t, delayed.spans, maxDelayedSpans)

Expand Down Expand Up @@ -89,9 +87,7 @@ func TestFlushDelayedSpans(t *testing.T) {
// following check is added for debugging random failures in the unit tests of delayed spans
// TODO: remove it once the issue is resolved.
_, isURLPresent := os.LookupEnv("INSTANA_ENDPOINT_URL")
_, isKeyPresent := os.LookupEnv("INSTANA_AGENT_KEY")
assert.Equal(t, false, isURLPresent)
assert.Equal(t, false, isKeyPresent)

assert.Len(t, delayed.spans, maxDelayedSpans)

Expand Down Expand Up @@ -122,9 +118,7 @@ func TestParallelFlushDelayedSpans(t *testing.T) {
// following check is added for debugging random failures in the unit tests of delayed spans
// TODO: remove it once the issue is resolved.
_, isURLPresent := os.LookupEnv("INSTANA_ENDPOINT_URL")
_, isKeyPresent := os.LookupEnv("INSTANA_AGENT_KEY")
assert.Equal(t, false, isURLPresent)
assert.Equal(t, false, isKeyPresent)

assert.Len(t, delayed.spans, maxDelayedSpans)

Expand Down

0 comments on commit 48f8e36

Please sign in to comment.