Skip to content

Commit

Permalink
Update integration test comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscovalentecastro committed Jan 8, 2024
1 parent 1dc1c77 commit cec1a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_test/ops_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3803,8 +3803,8 @@ func TestLoggingSelfLogs(t *testing.T) {
t.Error(err)
}

// Waiting 10 minutes (subtracting current test runtime) after
// Ops Agent startup for "LogPingOpsAgent" to show.
// Waiting 10 minutes (subtracting current test runtime) after Ops Agent startup for
// "LogPingOpsAgent" to show. We can remove wait when feature b/319102785 is complete.
time.Sleep(10 * time.Minute - time.Now().Sub(start))
queryPing := fmt.Sprintf(`severity="DEBUG" AND jsonPayload.code="LogPingOpsAgent" AND labels."agent.googleapis.com/health/agentKind"="ops-agent" AND labels."agent.googleapis.com/health/agentVersion"=~"^\d+\.\d+\.\d+.*$" AND labels."agent.googleapis.com/health/schemaVersion"="v1"`)
if err := gce.WaitForLog(ctx, logger.ToMainLog(), vm, "ops-agent-health", time.Hour, queryPing); err != nil {
Expand Down

0 comments on commit cec1a95

Please sign in to comment.