tetra12 opened a new issue, #36:
URL: https://github.com/apache/cloudstack-go/issues/36
I'm trying to set an `async timeout of 1 sec` with the following code:
```go
func MakeClient() *cloudstack.CloudStackClient {
apiURL := os.Getenv("NWS_API_URL")
apiKey := os.Getenv("NWS_API_KEY")
secretKey := os.Getenv("NWS_SECRET_KEY")
acsTimeout := 1 // sec
cs := cloudstack.NewAsyncClient(apiURL, apiKey, secretKey, false)
cs.AsyncTimeout(acsTimeout)
return cs
}
```
However, when I run a test on the real infra, I'm getting this:
```bash
=== RUN TestVPC_create
INFO[2022-05-25T18:36:01+03:00] Success
--- PASS: TestVPC_create (3.38s)
```
So this test took `3.38 sec` without being timed out by the ACS client. I
also look :eyes: into the impl and found out it to be rather poor.
Question: could anyone confirm the valid functionality of `async` client?
Otherwise, I'm taking a lead to update the async part to match the expected
functionality :roll_eyes:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]