@@ -144,12 +144,12 @@ func TestActionsArtifactDownload(t *testing.T) {
144
144
var downloadResp downloadArtifactResponse
145
145
DecodeJSON (t , resp , & downloadResp )
146
146
assert .Len (t , downloadResp .Value , 1 )
147
- assert .Equal (t , "artifact-download/abc.txt" , downloadResp .Value [artifactIdx ].Path )
148
- assert .Equal (t , "file" , downloadResp .Value [artifactIdx ].ItemType )
149
- assert .Contains (t , downloadResp .Value [artifactIdx ].ContentLocation , "/api/actions_pipeline/_apis/pipelines/workflows/791/artifacts" )
147
+ assert .Equal (t , "artifact-download/abc.txt" , downloadResp .Value [0 ].Path )
148
+ assert .Equal (t , "file" , downloadResp .Value [0 ].ItemType )
149
+ assert .Contains (t , downloadResp .Value [0 ].ContentLocation , "/api/actions_pipeline/_apis/pipelines/workflows/791/artifacts" )
150
150
151
- idx = strings .Index (downloadResp .Value [artifactIdx ].ContentLocation , "/api/actions_pipeline/_apis/pipelines/" )
152
- url = downloadResp .Value [artifactIdx ].ContentLocation [idx :]
151
+ idx = strings .Index (downloadResp .Value [0 ].ContentLocation , "/api/actions_pipeline/_apis/pipelines/" )
152
+ url = downloadResp .Value [0 ].ContentLocation [idx :]
153
153
req = NewRequest (t , "GET" , url ).
154
154
AddTokenAuth ("8061e833a55f6fc0157c98b883e91fcfeeb1a71a" )
155
155
resp = MakeRequest (t , req , http .StatusOK )
0 commit comments