File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
main/java/com/databricks/sdk/core
test/java/com/databricks/sdk/core Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -614,11 +614,6 @@ public DatabricksConfig setOAuthBrowserAuthTimeout(Duration oauthBrowserAuthTime
614614 return this ;
615615 }
616616
617- public DatabricksConfig setOAuthBrowserAuthTimeout (int seconds ) {
618- this .oauthBrowserAuthTimeout = seconds > 0 ? Duration .ofSeconds (seconds ) : null ;
619- return this ;
620- }
621-
622617 public boolean isAzure () {
623618 if (azureWorkspaceResourceId != null ) {
624619 return true ;
Original file line number Diff line number Diff line change @@ -261,11 +261,11 @@ public void testOAuthBrowserAuthTimeout() {
261261 config .setOAuthBrowserAuthTimeout (Duration .ofSeconds (30 ));
262262 assertEquals (Duration .ofSeconds (30 ), config .getOAuthBrowserAuthTimeout ());
263263
264- config .setOAuthBrowserAuthTimeout (60 );
264+ config .setOAuthBrowserAuthTimeout (Duration . ofSeconds ( 60 ) );
265265 assertEquals (Duration .ofSeconds (60 ), config .getOAuthBrowserAuthTimeout ());
266266
267- config .setOAuthBrowserAuthTimeout (0 );
268- assertNull ( config .getOAuthBrowserAuthTimeout ());
267+ config .setOAuthBrowserAuthTimeout (Duration . ofSeconds ( 0 ) );
268+ assertEquals ( Duration . ZERO , config .getOAuthBrowserAuthTimeout ());
269269 }
270270
271271 @ Test
You can’t perform that action at this time.
0 commit comments