Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersonQ committed Aug 30, 2023
1 parent 997bece commit 4dc72df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/testing/tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func InstallAgentForPolicy(t *testing.T, ctx context.Context,

timeout := 5 * time.Minute
if deadline, ok := ctx.Deadline(); ok {
timeout = deadline.Sub(time.Now())
timeout = time.Until(deadline)
}
// Wait for Agent to be healthy
require.Eventually(
Expand Down

0 comments on commit 4dc72df

Please sign in to comment.