Add formatErrorMsg for comparing error messages in tests#1034
Add formatErrorMsg for comparing error messages in tests#1034lilgreenbird merged 10 commits intomicrosoft:devfrom
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.
|
6a970e0
| } else { | ||
| timeoutUnitInterval = timerTimeout; | ||
| } | ||
| timeoutUnitInterval = (isDBMirroring || useParallel) ? (long) (TIMEOUTSTEP * timerTimeout) |
There was a problem hiding this comment.
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); |
| fedAuthRequiredByUser = true; | ||
| } | ||
|
|
||
| fedAuthRequiredByUser = (!authenticationString.equalsIgnoreCase(SqlAuthentication.NotSpecified.toString())) |
There was a problem hiding this comment.
Why was this line added? it looks like a duplicate of line 2436?
formatErrorMsg() from @rene-ye