diff --git a/services/oss/ApkVersion_get.go b/services/oss/ApkVersion_get.go index 6082b67..82a1ca3 100644 --- a/services/oss/ApkVersion_get.go +++ b/services/oss/ApkVersion_get.go @@ -3,6 +3,7 @@ package oss import ( "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests" "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses" + "time" ) type GetApkVersionRequest struct { @@ -28,6 +29,7 @@ func CreateGetApkVersionRequest() (req *GetApkVersionRequest) { } req.InitWithApiInfo(HOST, VERSION, "/api/apk/version") req.Method = requests.POST + req.SetReadTimeout(30 * time.Second) return } diff --git a/services/oss/client_test.go b/services/oss/client_test.go index dcb8317..8b10ad6 100644 --- a/services/oss/client_test.go +++ b/services/oss/client_test.go @@ -72,7 +72,7 @@ func TestCreateInitMultipartUpload(t *testing.T) { func TestClient_GetApkVersion(t *testing.T) { req := CreateGetApkVersionRequest() - req.Filepath = "51c68615b8d21f9b72b02f48c400cb87.zip" + req.Filepath = "uploads/files/package/1f57ac9693f0593fc9073f366b1c1936.zip" client, err := NewClient() if err != nil { t.Error(err)