Skip to content

Commit

Permalink
fix(connect): user input timeouts used for wait
Browse files Browse the repository at this point in the history
  • Loading branch information
GlennChia authored and gdavison committed Jun 24, 2022
1 parent a7c064b commit 229a1f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/connect/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func waitInstanceCreated(ctx context.Context, conn *connect.Connect, timeout tim
Pending: []string{connect.InstanceStatusCreationInProgress},
Target: []string{connect.InstanceStatusActive},
Refresh: statusInstance(ctx, conn, instanceId),
Timeout: instanceCreatedTimeout,
Timeout: timeout,
}

outputRaw, err := stateConf.WaitForState()
Expand All @@ -41,7 +41,7 @@ func waitInstanceDeleted(ctx context.Context, conn *connect.Connect, timeout tim
Pending: []string{connect.InstanceStatusActive},
Target: []string{connect.ErrCodeResourceNotFoundException},
Refresh: statusInstance(ctx, conn, instanceId),
Timeout: instanceDeletedTimeout,
Timeout: timeout,
}

outputRaw, err := stateConf.WaitForState()
Expand Down

0 comments on commit 229a1f6

Please sign in to comment.