1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

fix unit test 3

This commit is contained in:
anilkeshav27
2025-07-28 19:34:41 +02:00
parent bccabf25a3
commit 9093fa9d25

View File

@@ -213,6 +213,13 @@ go 1.17`
ArtifactVersion: "1.0.0",
}
fileExists = func(s string) (bool, error) {
if s == "go.mod" {
return false, nil
}
return true, nil
}
utils := newGolangBuildTestsUtils()
utils.returnFileUploadStatus = 201
utils.FilesMock.AddFile("go.mod", []byte(modTestFile))