diff --git a/pkg/ccl/backupccl/show_test.go b/pkg/ccl/backupccl/show_test.go index 266872c5cd68..fcded2ab2c3d 100644 --- a/pkg/ccl/backupccl/show_test.go +++ b/pkg/ccl/backupccl/show_test.go @@ -124,7 +124,7 @@ ORDER BY object_type, object_name`, full) // Truncate decimal places so Go's very rigid parsing will work. // TODO(bardin): Consider using a third-party library for this, or some kind // of time-freezing on the test cluster. - truncateBackupTimeRE := regexp.MustCompile(`^(.*\.[0-9]{2})[0-9]*\+00$`) + truncateBackupTimeRE := regexp.MustCompile(`^(.*\.\d{2})?[0-9]*\+00$`) matchResult := truncateBackupTimeRE.FindStringSubmatch(beforeTS) require.NotNil(t, matchResult, "%s does not match %s", beforeTS, truncateBackupTimeRE) backupTime, err := time.Parse("2006-01-02 15:04:05.00", matchResult[1])