From ce27437a151de5d123d067994d2b6e6a442c1c96 Mon Sep 17 00:00:00 2001 From: Sebastien Briquet Date: Fri, 28 Dec 2018 18:44:11 +0100 Subject: [PATCH] Fixed MockBackOff#getMaxTries, returns `maxTries` (#548) --- .../java/com/google/api/client/testing/util/MockBackOff.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java b/google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java index 6e5a85415..ba68370ad 100644 --- a/google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java +++ b/google-http-client/src/main/java/com/google/api/client/testing/util/MockBackOff.java @@ -85,7 +85,7 @@ public MockBackOff setMaxTries(int maxTries) { /** Returns the maximum number of tries before returning {@link #STOP}. */ public final int getMaxTries() { - return numTries; + return maxTries; } /** Returns the number of tries so far. */