mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 20:50:24 +00:00
Fix parsing timestamp in test
This commit is contained in:
@@ -1860,7 +1860,7 @@ type scaleUpStatus struct {
|
||||
// Try to get timestamp from status.
|
||||
// Status configmap is not parsing-friendly, so evil regexpery follows.
|
||||
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 {
|
||||
return time.Time{}, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user