From a4a79586d8aec87344ef81c0a46fcb3c8b61ce88 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Wed, 5 Nov 2014 00:30:05 -0500 Subject: [PATCH] Permit release candidates in version numbers. --- okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java index 0f832f4d5a2b..4ebbb7e68f1b 100644 --- a/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java +++ b/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java @@ -1484,7 +1484,7 @@ public final class CallTest { RecordedRequest recordedRequest = server.takeRequest(); assertTrue(recordedRequest.getHeader("User-Agent") - .matches("okhttp/\\d\\.\\d\\.\\d(-SNAPSHOT)?")); + .matches("okhttp/\\d\\.\\d\\.\\d(-SNAPSHOT|-RC\\d+)?")); } @Test public void setFollowRedirectsFalse() throws Exception {