From 7f118d6222cf03a320a7763e70e749612e4d2169 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Tue, 30 Jun 2020 12:18:09 +0200 Subject: [PATCH] testserver/artifact: rename to ArtifactFromFiles --- pkg/testserver/artifact.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/testserver/artifact.go b/pkg/testserver/artifact.go index df58e0c0..5087ea0e 100644 --- a/pkg/testserver/artifact.go +++ b/pkg/testserver/artifact.go @@ -45,9 +45,9 @@ type File struct { Body string } -// ArtifactFromBytes creates a tar.gz artifact from the given files and +// ArtifactFromFiles creates a tar.gz artifact from the given files and // returns the file name of the artifact. -func (s *ArtifactServer) ArtifactFromBytes(files []File) (string, error) { +func (s *ArtifactServer) ArtifactFromFiles(files []File) (string, error) { fileName := calculateArtifactName(files) filePath := filepath.Join(s.docroot, fileName) gzFile, err := os.Create(filePath)