Skip to content

Commit

Permalink
adjust timeouts so tests have better chance of succeeding (#3549)
Browse files Browse the repository at this point in the history
* adjust timeouts so tests have better chance of succeeding

(cherry picked from commit dcf2263)
  • Loading branch information
leehinman authored and mergify[bot] committed Oct 6, 2023
1 parent cb50e97 commit 377a112
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func TestCoordinatorShutdownTimeout(t *testing.T) {
}

func TestCoordinatorShutdownErrorOneResponse(t *testing.T) {
CoordinatorShutdownTimeout = time.Millisecond
CoordinatorShutdownTimeout = 10 * time.Millisecond
handlerChan, _, _, config := setupAndWaitCoordinatorDone()

cfgErrStr := "config watcher error"
Expand All @@ -335,7 +335,7 @@ func TestCoordinatorShutdownErrorOneResponse(t *testing.T) {
}

func TestCoordinatorShutdownErrorAllResponses(t *testing.T) {
CoordinatorShutdownTimeout = time.Millisecond
CoordinatorShutdownTimeout = 5 * time.Second
handlerChan, runtime, varWatcher, config := setupAndWaitCoordinatorDone()
runtimeErrStr := "runtime error"
varsErrStr := "vars error"
Expand All @@ -350,7 +350,7 @@ func TestCoordinatorShutdownErrorAllResponses(t *testing.T) {
}

func TestCoordinatorShutdownAllResponsesNoErrors(t *testing.T) {
CoordinatorShutdownTimeout = time.Millisecond
CoordinatorShutdownTimeout = 5 * time.Second
handlerChan, runtime, varWatcher, config := setupAndWaitCoordinatorDone()
runtime <- nil
varWatcher <- nil
Expand Down

0 comments on commit 377a112

Please sign in to comment.