diff --git a/test/integration/Untitled-1 b/test/integration/Untitled-1 new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/test/integration/a_download_only_test.go b/test/integration/a_serial_tests.go similarity index 85% rename from test/integration/a_download_only_test.go rename to test/integration/a_serial_tests.go index 8e311b9d527f..78dd73652557 100644 --- a/test/integration/a_download_only_test.go +++ b/test/integration/a_serial_tests.go @@ -16,7 +16,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -// a_download_only_test.go filename starts with a, for the purpose that it runs before all parallel tests and downloads the images and caches them. package integration import ( @@ -34,10 +33,7 @@ import ( "k8s.io/minikube/pkg/minikube/localpath" ) -// Note this test runs before all because filename is alphabetically first -// is used to cache images and binaries used by other parallel tests to avoid redownloading. -// TestDownloadOnly tests the --download-only option -func TestDownloadOnly(t *testing.T) { +func TestDownloadAndDeleteAll(t *testing.T) { profile := UniqueProfileName("download") ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute) defer Cleanup(t, profile, cancel) @@ -79,5 +75,13 @@ func TestDownloadOnly(t *testing.T) { } }) } + // This is a weird place to test profile deletion, but this test is serial, and we have a profile to delete! + t.Run("DeleteAll", func(t *testing.T) { + rr, err := Run(t, exec.CommandContext(ctx, Target(), "delete", "--all")) + if err != nil { + t.Errorf("%s failed: %v", rr.Args, err) + } + }) }) + } diff --git a/test/integration/start_stop_delete_test.go b/test/integration/start_stop_delete_test.go index 1ed1f6b676fe..bf575baeee7f 100644 --- a/test/integration/start_stop_delete_test.go +++ b/test/integration/start_stop_delete_test.go @@ -139,11 +139,6 @@ func TestStartStop(t *testing.T) { if err != nil { t.Errorf("%s failed: %v", rr.Args, err) } - - rr, err = Run(t, exec.CommandContext(ctx, Target(), "delete", "--all")) - if err != nil { - t.Errorf("%s failed: %v", rr.Args, err) - } }) } })