Skip to content

Commit

Permalink
[KYUUBI #2686][FOLLOWUP] Avoid potential flaky test
Browse files Browse the repository at this point in the history
### _Why are the changes needed?_

increase the time span of the lock timout for test

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #2711 from ulysses-you/KYUUBI-2686-FOLLOWUP.

Closes #2686

f34e4e2 [ulysses-you] avoid potential flaky test

Authored-by: ulysses-you <[email protected]>
Signed-off-by: Fei Wang <[email protected]>
  • Loading branch information
ulysses-you authored and turboFei committed May 20, 2022
1 parent 8905bde commit 45531f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private[kyuubi] class EngineRef(

// In case the multi kyuubi instances have the small gap of timeout, here we add
// a small amount of time for timeout
private val LOCK_TIMEOUT_SPAN_FACTOR = 0.1
private val LOCK_TIMEOUT_SPAN_FACTOR = if (Utils.isTesting) 0.5 else 0.1

private var builder: ProcBuilder = _

Expand Down

0 comments on commit 45531f0

Please sign in to comment.