Skip to content

Commit f4d65c7

Browse files
authored
test: relax test to allow sp versions (#1370)
1 parent 9a03ad4 commit f4d65c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ public LowLevelHttpResponse execute() throws IOException {
10901090

10911091
public void testVersion() {
10921092
assertNotNull("version constant should not be null", HttpRequest.VERSION);
1093-
Pattern semverPattern = Pattern.compile("\\d+\\.\\d+\\.\\d+(-SNAPSHOT)?");
1093+
Pattern semverPattern = Pattern.compile("\\d+\\.\\d+\\.\\d+(-sp\\.\\d+)?(-SNAPSHOT)?");
10941094
assertTrue(semverPattern.matcher(HttpRequest.VERSION).matches());
10951095
}
10961096

0 commit comments

Comments
 (0)