Skip to content

Commit

Permalink
Modify test timeline to ensure entity query is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
zhihonl committed Nov 14, 2024
1 parent 94c3111 commit 57497c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/entity/entity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

const (
sleepForFlush = 180 * time.Second
sleepForFlush = 240 * time.Second

entityType = "@entity.KeyAttributes.Type"
entityName = "@entity.KeyAttributes.Name"
Expand Down Expand Up @@ -226,7 +226,7 @@ func ValidateLogEntity(t *testing.T, logGroup, logStream string, end *time.Time,
t.Fatalf("application log group used for entity validation doesn't exist: %s", logGroup)
}

begin := end.Add(-sleepForFlush * 2)
begin := end.Add(-2 * time.Minute)
log.Printf("Start time is %s and end time is %s", begin.String(), end.String())

result, err := awsservice.GetLogQueryResults(logGroup, begin.Unix(), end.Unix(), queryString)
Expand Down

0 comments on commit 57497c6

Please sign in to comment.