diff --git a/proto/gen/einride/example/freight/v1/freight_service_aiptest.pb.go b/proto/gen/einride/example/freight/v1/freight_service_aiptest.pb.go index 9d66d58..c6e0234 100644 --- a/proto/gen/einride/example/freight/v1/freight_service_aiptest.pb.go +++ b/proto/gen/einride/example/freight/v1/freight_service_aiptest.pb.go @@ -11,7 +11,6 @@ import ( protocmp "google.golang.org/protobuf/testing/protocmp" fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" assert "gotest.tools/v3/assert" - runtime "runtime" strings "strings" testing "testing" time "time" @@ -86,11 +85,7 @@ func (fx *ShipperTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -562,11 +557,7 @@ func (fx *SiteTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. diff --git a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/job_service_aiptest.pb.go b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/job_service_aiptest.pb.go index 97b238f..39c78f3 100644 --- a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/job_service_aiptest.pb.go +++ b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/job_service_aiptest.pb.go @@ -11,7 +11,6 @@ import ( protocmp "google.golang.org/protobuf/testing/protocmp" fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" assert "gotest.tools/v3/assert" - runtime "runtime" strings "strings" testing "testing" time "time" @@ -140,11 +139,7 @@ func (fx *BatchPredictionJobTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -824,11 +819,7 @@ func (fx *CustomJobTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -1345,11 +1336,7 @@ func (fx *DataLabelingJobTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -1853,11 +1840,7 @@ func (fx *HyperparameterTuningJobTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -2458,11 +2441,7 @@ func (fx *ModelDeploymentMonitoringJobTestSuiteConfig) testCreate(t *testing.T) assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -3195,11 +3174,7 @@ func (fx *NasJobTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. diff --git a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/metadata_service_aiptest.pb.go b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/metadata_service_aiptest.pb.go index fea17c2..b042ed0 100644 --- a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/metadata_service_aiptest.pb.go +++ b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/metadata_service_aiptest.pb.go @@ -10,7 +10,6 @@ import ( protocmp "google.golang.org/protobuf/testing/protocmp" fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" assert "gotest.tools/v3/assert" - runtime "runtime" strings "strings" testing "testing" time "time" @@ -127,11 +126,7 @@ func (fx *ArtifactTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -583,11 +578,7 @@ func (fx *ContextTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -1039,11 +1030,7 @@ func (fx *ExecutionTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -1490,11 +1477,7 @@ func (fx *MetadataSchemaTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. diff --git a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/pipeline_service_aiptest.pb.go b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/pipeline_service_aiptest.pb.go index bde21a6..3e7ed2f 100644 --- a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/pipeline_service_aiptest.pb.go +++ b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/pipeline_service_aiptest.pb.go @@ -9,7 +9,6 @@ import ( status "google.golang.org/grpc/status" protocmp "google.golang.org/protobuf/testing/protocmp" assert "gotest.tools/v3/assert" - runtime "runtime" strings "strings" testing "testing" time "time" @@ -98,11 +97,7 @@ func (fx *PipelineJobTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -526,11 +521,7 @@ func (fx *TrainingPipelineTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. diff --git a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/schedule_service_aiptest.pb.go b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/schedule_service_aiptest.pb.go index 7d25c89..a9b9114 100644 --- a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/schedule_service_aiptest.pb.go +++ b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/schedule_service_aiptest.pb.go @@ -11,7 +11,6 @@ import ( protocmp "google.golang.org/protobuf/testing/protocmp" fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" assert "gotest.tools/v3/assert" - runtime "runtime" strings "strings" testing "testing" time "time" @@ -96,11 +95,7 @@ func (fx *ScheduleTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. diff --git a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/tensorboard_service_aiptest.pb.go b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/tensorboard_service_aiptest.pb.go index 3224b8e..ad2992b 100644 --- a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/tensorboard_service_aiptest.pb.go +++ b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/tensorboard_service_aiptest.pb.go @@ -11,7 +11,6 @@ import ( protocmp "google.golang.org/protobuf/testing/protocmp" fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" assert "gotest.tools/v3/assert" - runtime "runtime" strings "strings" testing "testing" time "time" @@ -591,11 +590,7 @@ func (fx *TensorboardExperimentTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -1047,11 +1042,7 @@ func (fx *TensorboardRunTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. @@ -1568,11 +1559,7 @@ func (fx *TensorboardTimeSeriesTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get. diff --git a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/vizier_service_aiptest.pb.go b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/vizier_service_aiptest.pb.go index a0279d1..2d72038 100644 --- a/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/vizier_service_aiptest.pb.go +++ b/proto/gen/googleapis/aiplatform/apiv1/aiplatformpb/vizier_service_aiptest.pb.go @@ -9,7 +9,6 @@ import ( status "google.golang.org/grpc/status" protocmp "google.golang.org/protobuf/testing/protocmp" assert "gotest.tools/v3/assert" - runtime "runtime" strings "strings" testing "testing" time "time" @@ -98,11 +97,7 @@ func (fx *StudyTestSuiteConfig) testCreate(t *testing.T) { assert.NilError(t, err) assert.Check(t, msg.CreateTime != nil) assert.Check(t, !msg.CreateTime.AsTime().IsZero()) - if runtime.GOOS == "darwin" { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate.Add(1*time.Second))) - } else { - assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) - } + assert.Check(t, msg.CreateTime.AsTime().After(beforeCreate)) }) // The created resource should be persisted and reachable with Get.