add memory limit to all minikube starts in integration test

pull/9755/head
Medya Gh 2020-11-20 14:46:22 -08:00
parent 852bceeef2
commit 5d34a5e7e6
3 changed files with 4 additions and 4 deletions

View File

@ -756,11 +756,11 @@ func validateServiceCmd(ctx context.Context, t *testing.T, profile string) {
rr, err := Run(t, exec.CommandContext(ctx, "kubectl", "--context", profile, "create", "deployment", "hello-node", "--image=k8s.gcr.io/echoserver:1.4"))
if err != nil {
t.Logf("%q failed: %v (may not be an error).", rr.Command(), err)
t.Fatalf("failed to create hello-node deployment with this command %q: %v.", rr.Command(), err)
}
rr, err = Run(t, exec.CommandContext(ctx, "kubectl", "--context", profile, "expose", "deployment", "hello-node", "--type=NodePort", "--port=8080"))
if err != nil {
t.Logf("%q failed: %v (may not be an error)", rr.Command(), err)
t.Fatalf("failed to expose hello-node deployment: %q : %v", rr.Command(), err)
}
if _, err := PodWait(ctx, t, profile, "default", "app=hello-node", Minutes(10)); err != nil {

View File

@ -100,7 +100,7 @@ func TestScheduledStopUnix(t *testing.T) {
}
func startMinikube(ctx context.Context, t *testing.T, profile string) {
args := append([]string{"start", "-p", profile}, StartArgs()...)
args := append([]string{"start", "-p", profile, "--memory=1900"}, StartArgs()...)
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
if err != nil {
t.Fatalf("starting minikube: %v\n%s", err, rr.Output())

View File

@ -40,7 +40,7 @@ func TestInsufficientStorage(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), Minutes(5))
defer Cleanup(t, profile, cancel)
startArgs := []string{"start", "-p", profile, "--output=json", "--wait=true"}
startArgs := []string{"start", "-p", profile, "--memory=1900", "--output=json", "--wait=true"}
startArgs = append(startArgs, StartArgs()...)
c := exec.CommandContext(ctx, Target(), startArgs...)
// artificially set /var to 100% capacity