Skip to content

Commit

Permalink
Merge remote-tracking branch 'joe-kimmel-vmw/go120' into jkutner/deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jkutner committed May 11, 2023
2 parents 48f25f1 + 4060795 commit 312b265
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func TestAcceptance(t *testing.T) {
var err error

h.RequireDocker(t)
rand.Seed(time.Now().UTC().UnixNano())

assert := h.NewAssertionManager(t)

Expand Down
2 changes: 0 additions & 2 deletions internal/build/container_ops_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import (

// TestContainerOperations are integration tests for the container operations against a docker daemon
func TestContainerOperations(t *testing.T) {
rand.Seed(time.Now().UTC().UnixNano())

color.Disable(true)
defer color.Disable(false)

Expand Down
2 changes: 0 additions & 2 deletions internal/build/lifecycle_execution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ import (

// TestLifecycleExecution are unit tests that test each possible phase to ensure they are executed with the proper parameters
func TestLifecycleExecution(t *testing.T) {
rand.Seed(time.Now().UTC().UnixNano())

color.Disable(true)
defer color.Disable(false)

Expand Down
4 changes: 0 additions & 4 deletions internal/build/lifecycle_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ type Termui interface {
ReadLayers(reader io.ReadCloser) error
}

func init() {
rand.Seed(time.Now().UTC().UnixNano())
}

type LifecycleOptions struct {
AppPath string
Image name.Reference
Expand Down
2 changes: 0 additions & 2 deletions internal/build/phase_config_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import (
)

func TestPhaseConfigProvider(t *testing.T) {
rand.Seed(time.Now().UTC().UnixNano())

color.Disable(true)
defer color.Disable(false)

Expand Down
2 changes: 0 additions & 2 deletions internal/build/phase_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ var (

// TestPhase is a integration test suite to ensure that the phase options are propagated to the container.
func TestPhase(t *testing.T) {
rand.Seed(time.Now().UTC().UnixNano())

color.Disable(true)
defer color.Disable(false)

Expand Down
1 change: 0 additions & 1 deletion pkg/archive/archive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
func TestArchive(t *testing.T) {
color.Disable(true)
defer color.Disable(false)
rand.Seed(time.Now().UTC().UnixNano())
spec.Run(t, "Archive", testArchive, spec.Sequential(), spec.Report(report.Terminal{}))
}

Expand Down
1 change: 0 additions & 1 deletion pkg/archive/tar_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
func TestTarBuilder(t *testing.T) {
color.Disable(true)
defer color.Disable(false)
rand.Seed(time.Now().UTC().UnixNano())
spec.Run(t, "TarBuilder", testTarBuilder, spec.Sequential(), spec.Report(report.Terminal{}))
}

Expand Down
1 change: 0 additions & 1 deletion pkg/cache/image_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ func TestImageCache(t *testing.T) {
h.RequireDocker(t)
color.Disable(true)
defer color.Disable(false)
rand.Seed(time.Now().UTC().UnixNano())

spec.Run(t, "ImageCache", testImageCache, spec.Parallel(), spec.Report(report.Terminal{}))
}
Expand Down
1 change: 0 additions & 1 deletion pkg/cache/volume_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func TestVolumeCache(t *testing.T) {
h.RequireDocker(t)
color.Disable(true)
defer color.Disable(false)
rand.Seed(time.Now().UTC().UnixNano())

spec.Run(t, "VolumeCache", testCache, spec.Parallel(), spec.Report(report.Terminal{}))
}
Expand Down
1 change: 0 additions & 1 deletion pkg/client/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ import (
func TestBuild(t *testing.T) {
color.Disable(true)
defer color.Disable(false)
rand.Seed(time.Now().UTC().UnixNano())
spec.Run(t, "build", testBuild, spec.Report(report.Terminal{}))
}

Expand Down
2 changes: 0 additions & 2 deletions pkg/image/fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ var docker client.CommonAPIClient
var registryConfig *h.TestRegistryConfig

func TestFetcher(t *testing.T) {
rand.Seed(time.Now().UTC().UnixNano())

color.Disable(true)
defer color.Disable(false)

Expand Down
1 change: 0 additions & 1 deletion pkg/project/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ func TestProject(t *testing.T) {
h.RequireDocker(t)
color.Disable(true)
defer color.Disable(false)
rand.Seed(time.Now().UTC().UnixNano())

spec.Run(t, "Provider", testProject, spec.Parallel(), spec.Report(report.Terminal{}))
}
Expand Down

0 comments on commit 312b265

Please sign in to comment.