Commit 3eb420b7 authored by Aleksandra Malinowska's avatar Aleksandra Malinowska

Fix parsing timestamp in test

parent 34c6fe3b
...@@ -1860,7 +1860,7 @@ type scaleUpStatus struct { ...@@ -1860,7 +1860,7 @@ type scaleUpStatus struct {
// Try to get timestamp from status. // Try to get timestamp from status.
// Status configmap is not parsing-friendly, so evil regexpery follows. // Status configmap is not parsing-friendly, so evil regexpery follows.
func getStatusTimestamp(status string) (time.Time, error) { func getStatusTimestamp(status string) (time.Time, error) {
timestampMatcher, err := regexp.Compile("Cluster-autoscaler status at \\s*([0-9\\-]+ [0-9]+:[0-9]+:[0-9]+\\.[0-9]+ \\+[0-9]+ [A-Za-z]+):") timestampMatcher, err := regexp.Compile("Cluster-autoscaler status at \\s*([0-9\\-]+ [0-9]+:[0-9]+:[0-9]+\\.[0-9]+ \\+[0-9]+ [A-Za-z]+)")
if err != nil { if err != nil {
return time.Time{}, err return time.Time{}, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment