@@ -106,7 +106,7 @@ func TestEndToEnd(t *testing.T) {
106
106
assert .True (t , strings .Contains (mockAPMServerLog , testUUID ))
107
107
}
108
108
109
- func runTestWithTimer (l * zap.SugaredLogger , path string , serviceName string , serverURL string , buildFlag bool , lambdaFuncTimeout int , resultsChan chan string ) string {
109
+ func runTestWithTimer (l * zap.SugaredLogger , path , serviceName , serverURL string , buildFlag bool , lambdaFuncTimeout int , resultsChan chan string ) string {
110
110
timer := time .NewTimer (time .Duration (lambdaFuncTimeout ) * time .Second * 2 )
111
111
defer timer .Stop ()
112
112
go runTest (l , path , serviceName , serverURL , buildFlag , lambdaFuncTimeout , resultsChan )
@@ -122,7 +122,7 @@ func buildExtensionBinaries(l *zap.SugaredLogger) {
122
122
RunCommandInDir (l , "make" , []string {}, ".." )
123
123
}
124
124
125
- func runTest (l * zap.SugaredLogger , path string , serviceName string , serverURL string , buildFlag bool , lambdaFuncTimeout int , resultsChan chan string ) {
125
+ func runTest (l * zap.SugaredLogger , path , serviceName , serverURL string , buildFlag bool , lambdaFuncTimeout int , resultsChan chan string ) {
126
126
l .Infof ("Starting to test %s" , serviceName )
127
127
128
128
if ! FolderExists (filepath .Join (path , ".aws-sam" )) || buildFlag {
@@ -144,7 +144,7 @@ func runTest(l *zap.SugaredLogger, path string, serviceName string, serverURL st
144
144
resultsChan <- uuidWithHyphen
145
145
}
146
146
147
- func retrieveJavaAgent (l * zap.SugaredLogger , samJavaPath string , version string ) {
147
+ func retrieveJavaAgent (l * zap.SugaredLogger , samJavaPath , version string ) {
148
148
agentFolderPath := filepath .Join (samJavaPath , "agent" )
149
149
agentArchivePath := filepath .Join (samJavaPath , "agent.zip" )
150
150
@@ -172,7 +172,7 @@ func changeJavaAgentPermissions(l *zap.SugaredLogger, samJavaPath string) {
172
172
agentFiles , err := os .ReadDir (agentFolderPath )
173
173
ProcessError (l , err )
174
174
for _ , f := range agentFiles {
175
- if err = os .Chmod (filepath .Join (agentFolderPath , f .Name ()), 0755 ); err != nil {
175
+ if err = os .Chmod (filepath .Join (agentFolderPath , f .Name ()), 0o755 ); err != nil {
176
176
l .Errorf ("Could not change java agent permissions : %v" , err )
177
177
}
178
178
}
0 commit comments