Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.12](backport #4101) Increase short 10 second timeout in TestFakeComponent #4103

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/testing/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ func watchState(ctx context.Context, t *testing.T, c client.Client, timeout time
// get a valid StateWatch connection
var sub client.ClientStateWatch
expBackoff := backoff.NewExponentialBackOff()
expBackoff.InitialInterval = 100 * time.Millisecond
expBackoff.MaxElapsedTime = timeout
expBackoff.MaxInterval = 2 * time.Second
err = backoff.RetryNotify(
Expand All @@ -966,6 +967,7 @@ func watchState(ctx context.Context, t *testing.T, c client.Client, timeout time
return
}

t.Logf("%s: StateWatch started", time.Now().UTC().Format(time.RFC3339Nano))
for {
recv, err := sub.Recv()
if err != nil {
Expand Down
3 changes: 0 additions & 3 deletions testing/integration/fake_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ func TestFakeComponent(t *testing.T) {
err = f.Prepare(ctx, fakeComponent, fakeShipper)
require.NoError(t, err)

ctx, cancel = context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()

err = f.Run(ctx, atesting.State{
Configure: simpleConfig1,
AgentState: atesting.NewClientState(client.Healthy),
Expand Down
Loading