File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed
main/java/com/databricks/sdk/core/oauth
test/java/com/databricks/sdk/core/oauth Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,6 @@ public Builder withBrowserTimeout(Optional<Duration> browserTimeout) {
113113 return this;
114114 }
115115
116- public Builder withBrowserTimeout(Duration browserTimeout) {
117- return withBrowserTimeout(Optional.of(browserTimeout));
118- }
119-
120116 public Consent build() {
121117 return new Consent(this);
122118 }
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ public Consent initiateConsent() throws MalformedURLException {
211211 .withState(state)
212212 .withVerifier(verifier)
213213 .withHttpClient(hc)
214- .withBrowserTimeout(browserTimeout.orElse(Duration.ofSeconds(0)) )
214+ .withBrowserTimeout(browserTimeout)
215215 .build();
216216 }
217217}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public void testConsentWithBrowserAuthTimeout() {
1919 .withRedirectUrl("http://localhost:8080/callback")
2020 .withState("test-state")
2121 .withVerifier("test-verifier")
22- .withBrowserTimeout(Duration.ofSeconds(30))
22+ .withBrowserTimeout(Optional.of( Duration.ofSeconds(30) ))
2323 .build();
2424
2525 // Verify that the timeout is properly set
You can’t perform that action at this time.
0 commit comments