Skip to content

Commit

Permalink
Reduce deploymentconfig test 3GBi memory size to reasonable
Browse files Browse the repository at this point in the history
  • Loading branch information
ardaguclu committed Apr 2, 2024
1 parent 56867df commit 80f9346
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/extended/deployments/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func deploymentInfo(oc *exutil.CLI, name string) (*appsv1.DeploymentConfig, []*c
type deploymentConditionFunc func(dc *appsv1.DeploymentConfig, rcs []*corev1.ReplicationController, pods []corev1.Pod) (bool, error)

func waitForLatestCondition(oc *exutil.CLI, name string, timeout time.Duration, fn deploymentConditionFunc) error {
return wait.PollImmediate(200*time.Millisecond, timeout, func() (bool, error) {
return wait.PollImmediate(500*time.Millisecond, timeout, func() (bool, error) {
dc, rcs, pods, err := deploymentInfo(oc, name)
if err != nil {
return false, err
Expand Down
4 changes: 2 additions & 2 deletions test/extended/testdata/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/extended/testdata/deployments/tag-images-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ spec:
containers:
- image: image-registry.openshift-image-registry.svc:5000/openshift/tools:latest
imagePullPolicy: IfNotPresent
command: ["/bin/sh", "-c", "sleep 300"]
command: [ "/bin/sh", "-c", "sleep 300" ]
name: sample-name
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: 100m
memory: 3Gi
memory: 1.2Gi

0 comments on commit 80f9346

Please sign in to comment.