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

[Do not merge] - Replicate issue by slowing agent startup down #4944

Closed
wants to merge 1 commit into from
Closed
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
1 change: 1 addition & 0 deletions internal/pkg/agent/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func logReturn(l *logger.Logger, err error) error {
}

func runElasticAgent(ctx context.Context, cancel context.CancelFunc, override cfgOverrider, stop chan bool, testingMode bool, fleetInitTimeout time.Duration, runAsOtel bool, awaiters awaiters, modifiers ...component.PlatformModifier) error {
time.Sleep(time.Minute)
cfg, err := loadConfig(ctx, override, runAsOtel)
if err != nil {
return err
Expand Down
8 changes: 4 additions & 4 deletions testing/integration/proxy_url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ func TestProxyURL(t *testing.T) {
}

// Specific testcase setup and map of created proxies
proxies, args := tt.setup(t, mockFleet)
_, args := tt.setup(t, mockFleet)

fixture, err := define.NewFixtureFromLocalBuild(t,
define.Version(),
Expand Down Expand Up @@ -732,9 +732,9 @@ func TestProxyURL(t *testing.T) {
Key: args.key,
}})
t.Logf("elastic-agent install output: \n%s\n", string(out))
if tt.wantErr(t, err, "elastic-agent install returned an unexpected error") {
tt.assertFunc(ctx, t, fixture, proxies, mockFleet)
}
//if tt.wantErr(t, err, "elastic-agent install returned an unexpected error") {
// tt.assertFunc(ctx, t, fixture, proxies, mockFleet)
//}
})
}

Expand Down
Loading