Skip to content

Commit

Permalink
adjust timeouts so tests have better chance of succeeding
Browse files Browse the repository at this point in the history
  • Loading branch information
leehinman committed Oct 5, 2023
1 parent ac2ef57 commit d104f9f
Showing 1 changed file with 1 addition 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,6 @@ func TestCoordinatorShutdownErrorOneResponse(t *testing.T) {
}

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

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

0 comments on commit d104f9f

Please sign in to comment.