Skip to content

Commit

Permalink
restores instanceID variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dchappa committed Dec 1, 2023
1 parent 0ebab6d commit 432d8c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/cloudwatchlogs/publish_logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ func writeSleepRestart(t *testing.T, f *os.File, configPath string, linesPerLoop
}

func autoRemovalTestCleanup() {
instanceId := awsservice.GetInstanceId()
awsservice.DeleteLogGroupAndStream(instanceId, instanceId)
paths, _ := filepath.Glob(logFilePath + "*")
for _, p := range paths {
Expand All @@ -316,6 +317,7 @@ func autoRemovalTestCleanup() {

// checkData queries CWL and verifies the number of log lines.
func checkData(t *testing.T, start time.Time, lineCount int) {
instanceId := awsservice.GetInstanceId()
end := time.Now()
// Sleep to ensure backend stores logs.
time.Sleep(time.Second * 60)
Expand Down

0 comments on commit 432d8c8

Please sign in to comment.