Skip to content

Commit 27c12b8

Browse files
committed
Add test for ordering
1 parent 76014bc commit 27c12b8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

+9
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,13 @@ class EmbeddedGitInfoBuilderTest extends Specification {
5050
gitInfo.commit.committer.email == "[email protected]"
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)