Visitar URL original
Add test for ordering · DataDog/dd-trace-java@b3bf09b · GitHub
Skip to content

Commit b3bf09b

Browse files
committed
Add test for ordering
1 parent f440bd3 commit b3bf09b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎internal-api/src/test/groovy/datadog/trace/api/git/EmbeddedGitInfoBuilderTest.groovy‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,13 @@ class EmbeddedGitInfoBuilderTest extends Specification {
5050
gitInfo.commit.committer.email == "nikita.tkachenko@datadoghq.com"
5151
gitInfo.commit.committer.iso8601Date == "2023-03-22T14:43:21+0100"
5252
}
53+
54+
def "test embedded gitinfo has a lower priority than user supplied gitinfo"() {
55+
when:
56+
def embeddedGitInfoBuilder = new EmbeddedGitInfoBuilder()
57+
def userSuppliedGitInfoBuilder = new UserSuppliedGitInfoBuilder()
58+
59+
then:
60+
embeddedGitInfoBuilder.order() > userSuppliedGitInfoBuilder.order()
61+
}
5362
}

0 commit comments

Comments
 (0)