Skip to content

Commit

Permalink
fix: remove duplicate test parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Sep 4, 2024
1 parent 6af8c7b commit a2877db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 3 additions & 7 deletions e2e/system/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,11 @@ func (s *Suite) TestDownloadFileFromRunningInstance() {
namePrefix = "download-file-running"
)

// Setup

target, err := s.Knuu.NewInstance(namePrefix + "-target")
s.Require().NoError(err)

ctx := context.Background()
s.Require().NoError(target.Build().SetImage(ctx, "alpine:latest"))
s.Require().NoError(target.Build().SetImage(ctx, alpineImage))
s.Require().NoError(target.Build().SetArgs("tail", "-f", "/dev/null")) // Keep the container running
s.Require().NoError(target.Build().Commit(ctx))
s.Require().NoError(target.Execution().Start(ctx))
Expand All @@ -102,14 +100,12 @@ func (s *Suite) TestDownloadFileFromRunningInstance() {
}
func (s *Suite) TestDownloadFileFromBuilder() {
const namePrefix = "download-file-builder"
s.T().Parallel()
// Setup

target, err := s.Knuu.NewInstance(namePrefix + "-target")
s.Require().NoError(err)

ctx := context.Background()
s.Require().NoError(target.Build().SetImage(ctx, "alpine:latest"))
s.Require().NoError(target.Build().SetImage(ctx, alpineImage))

s.T().Cleanup(func() {
if err := target.Execution().Destroy(ctx); err != nil {
Expand Down Expand Up @@ -146,7 +142,7 @@ func (s *Suite) TestMinio() {
s.Require().NoError(err)

ctx := context.Background()
s.Require().NoError(target.Build().SetImage(ctx, "alpine:latest"))
s.Require().NoError(target.Build().SetImage(ctx, alpineImage))
s.Require().NoError(target.Build().SetArgs("tail", "-f", "/dev/null")) // Keep the container running
s.Require().NoError(target.Build().Commit(ctx))
s.Require().NoError(target.Execution().Start(ctx))
Expand Down
1 change: 1 addition & 0 deletions e2e/system/suite_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
const (
testTimeout = time.Minute * 15 // the same time that is used in the ci/cd pipeline

alpineImage = "alpine:latest"
resourcesHTML = "resources/html"
resourcesFileCMToFolder = "resources/file_cm_to_folder"
)
Expand Down

0 comments on commit a2877db

Please sign in to comment.