Skip to content

Commit

Permalink
fix(batch): valid date format layout (#4252)
Browse files Browse the repository at this point in the history
Part of #4246
  • Loading branch information
Deleplace authored Jul 19, 2024
1 parent fa24a26 commit eb1408f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
5 changes: 2 additions & 3 deletions batch/create_with_gcs_bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ import (
)

func TestCreateJobWithBucket(t *testing.T) {
t.Skip("Skipped while investigating https://github.com/GoogleCloudPlatform/golang-samples/issues/2811")
t.Parallel()
var r *rand.Rand = rand.New(
rand.NewSource(time.Now().UnixNano()))
tc := testutil.SystemTest(t)
region := "us-central1"
jobName := fmt.Sprintf("test-job-go-bucket-%v-%v", time.Now().Format("2006-12-25"), r.Int())
bucketName := fmt.Sprintf("test-bucket-go-batch-%v-%v", time.Now().Format("2006-12-25"), r.Int())
jobName := fmt.Sprintf("test-job-go-bucket-%v-%v", time.Now().Format("2006-01-02"), r.Int())
bucketName := fmt.Sprintf("test-bucket-go-batch-%v-%v", time.Now().Format("2006-01-02"), r.Int())
buf := &bytes.Buffer{}

if err := createBucket(tc.ProjectID, bucketName); err != nil {
Expand Down
5 changes: 2 additions & 3 deletions batch/create_with_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ import (
)

func TestCreateJobWithTemplate(t *testing.T) {
t.Skip("Skipped while investigating https://github.com/GoogleCloudPlatform/golang-samples/issues/2811")
t.Parallel()
var r *rand.Rand = rand.New(
rand.NewSource(time.Now().UnixNano()))
tc := testutil.SystemTest(t)
region := "us-central1"
jobName := fmt.Sprintf("test-job-go-template-%v-%v", time.Now().Format("2006-12-25"), r.Int())
templateName := fmt.Sprintf("test-template-go-batch-%v-%v", time.Now().Format("2006-12-25"), r.Int())
jobName := fmt.Sprintf("test-job-go-template-%v-%v", time.Now().Format("2006-01-02"), r.Int())
templateName := fmt.Sprintf("test-template-go-batch-%v-%v", time.Now().Format("2006-01-02"), r.Int())
buf := &bytes.Buffer{}

if err := createTemplate(tc.ProjectID, templateName); err != nil {
Expand Down
6 changes: 2 additions & 4 deletions batch/job_basics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ import (
)

func TestBatchJobCRUD(t *testing.T) {
t.Skip("Skipped while investigating https://github.com/GoogleCloudPlatform/golang-samples/issues/2811")
t.Parallel()
var r *rand.Rand = rand.New(
rand.NewSource(time.Now().UnixNano()))
tc := testutil.SystemTest(t)
region := "us-central1"
jobName := fmt.Sprintf("test-job-go-script-%v-%v", time.Now().Format("2006-12-25"), r.Int())
jobName := fmt.Sprintf("test-job-go-script-%v-%v", time.Now().Format("2006-01-02"), r.Int())

buf := &bytes.Buffer{}

Expand Down Expand Up @@ -101,13 +100,12 @@ func TestBatchJobCRUD(t *testing.T) {
}

func TestBatchContainerJob(t *testing.T) {
t.Skip("Skipped while investigating https://github.com/GoogleCloudPlatform/golang-samples/issues/2811")
t.Parallel()
var r *rand.Rand = rand.New(
rand.NewSource(time.Now().UnixNano()))
tc := testutil.SystemTest(t)
region := "us-central1"
jobName := fmt.Sprintf("test-job-go-docker-%v-%v", time.Now().Format("2006-12-25"), r.Int())
jobName := fmt.Sprintf("test-job-go-docker-%v-%v", time.Now().Format("2006-01-02"), r.Int())

buf := &bytes.Buffer{}

Expand Down

0 comments on commit eb1408f

Please sign in to comment.