Skip to content

Commit f9f99f5

Browse files
committed
fix coverage
1 parent 88bb6b0 commit f9f99f5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

internal-api/src/test/groovy/datadog/trace/api/ProcessTagsForkedTest.groovy

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,16 @@ class ProcessTagsForkedTest extends DDSpecification {
6262
}
6363

6464
def 'should not calculate process tags by default'() {
65-
given:
65+
when:
66+
ProcessTags.reset()
6667
def processTags = ProcessTags.tagsForSerialization
67-
expect:
68-
!ProcessTags.enabled
69-
processTags == null
68+
then:
69+
assert !ProcessTags.enabled
70+
assert processTags == null
71+
when:
72+
ProcessTags.addTag("test", "value")
73+
then:
74+
assert ProcessTags.tagsForSerialization == null
7075
}
7176

7277
def 'should lazily recalculate when a tag is added'() {

0 commit comments

Comments
 (0)