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 {