Skip to content

Commit

Permalink
make CI Happy
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Oct 11, 2023
1 parent 8bb5c06 commit 69d061b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions testing/integration/datastreams_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/elastic/elastic-agent/pkg/testing/define"
"github.com/elastic/elastic-agent/pkg/testing/tools"
"github.com/elastic/elastic-agent/pkg/testing/tools/estools"
"github.com/elastic/elastic-agent/version"
"github.com/stretchr/testify/require"
)

Expand All @@ -38,8 +39,10 @@ func TestFlattenedDatastreamFleetPolicy(t *testing.T) {

info := define.Require(t, define.Requirements{
Local: false,
Stack: &define.Stack{},
Sudo: true,
Stack: &define.Stack{
Version: version.Agent + "-SNAPSHOT",
},
Sudo: true,
})

agentFixture, err := define.NewFixture(t, define.Version())
Expand Down Expand Up @@ -143,8 +146,10 @@ func TestFlattenedDatastreamStandalone(t *testing.T) {

info := define.Require(t, define.Requirements{
Local: false,
Stack: &define.Stack{},
Sudo: true,
Stack: &define.Stack{
Version: version.Agent + "-SNAPSHOT",
},
Sudo: true,
})

agentFixture, err := define.NewFixture(t,
Expand Down Expand Up @@ -180,7 +185,7 @@ func TestFlattenedDatastreamStandalone(t *testing.T) {
runCtx, cancelAgentRunCtx := context.WithCancel(context.Background())
go func() {
// make sure the test does not hang forever
time.Sleep(30 * time.Second)
time.Sleep(90 * time.Second)
t.Error("'test timeout': cancelling run context, the Elastic-Agent will exit")
cancelAgentRunCtx()
}()
Expand Down

0 comments on commit 69d061b

Please sign in to comment.