-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add formatErrorMsg for comparing error messages in tests #1034
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #1034 +/- ##
============================================
+ Coverage 50.81% 50.81% +<.01%
+ Complexity 2966 2963 -3
============================================
Files 120 120
Lines 28001 27940 -61
Branches 4686 4675 -11
============================================
- Hits 14228 14199 -29
+ Misses 11618 11591 -27
+ Partials 2155 2150 -5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## dev #1034 +/- ##
============================================
+ Coverage 50.83% 50.84% +0.01%
- Complexity 2964 2967 +3
============================================
Files 120 120
Lines 28001 27952 -49
Branches 4686 4675 -11
============================================
- Hits 14233 14213 -20
+ Misses 11616 11584 -32
- Partials 2152 2155 +3
Continue to review full report at Codecov.
|
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
6a970e0
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerConnection.java
Outdated
Show resolved
Hide resolved
} else { | ||
timeoutUnitInterval = timerTimeout; | ||
} | ||
timeoutUnitInterval = (isDBMirroring || useParallel) ? (long) (TIMEOUTSTEP * timerTimeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to do this? This impacts readability a lot.
static int timerRemaining(long timerExpire) { | ||
long remaining = timerExpire - System.currentTimeMillis(); | ||
// maximum timeout the socket takes is int max, minimum is at least 1 ms | ||
return (int) ((remaining > Integer.MAX_VALUE) ? Integer.MAX_VALUE : (remaining <= 0) ? 1 : remaining); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here as above
@@ -2466,6 +2437,9 @@ void Prelogin(String serverName, int portNumber) throws SQLServerException { | |||
fedAuthRequiredByUser = true; | |||
} | |||
|
|||
fedAuthRequiredByUser = (!authenticationString.equalsIgnoreCase(SqlAuthentication.NotSpecified.toString())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this line added? it looks like a duplicate of line 2436?
formatErrorMsg() from @rene-ye