testserver/artifact: rename to ArtifactFromFiles

This commit is contained in:
Hidde Beydals 2020-06-30 12:18:09 +02:00
parent 0bc28f7a42
commit 7f118d6222
1 changed files with 2 additions and 2 deletions

View File

@ -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)