Skip to content

Commit

Permalink
Replicate sdh issue by slowing agent startup down
Browse files Browse the repository at this point in the history
  • Loading branch information
pchila committed Jun 17, 2024
1 parent c929f79 commit 8488df4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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

0 comments on commit 8488df4

Please sign in to comment.