Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow seting custom API timeouts #318

Closed
wants to merge 1 commit into from

Conversation

leoleovich
Copy link
Contributor

Summary:
For config push, firmware upgrade and metrics export we have to have large timeout values (4 minutes). But for the rest we don't.
In real world it results in tests being slow running up to 4 minutes per test:

# go test github.com/facebook/time/calnex/verify/checks -v
=== RUN   TestGNSS
--- PASS: TestGNSS (75.00s)
=== RUN   TestHTTP
--- PASS: TestHTTP (75.01s)
=== RUN   TestPing
--- PASS: TestPing (1.01s)
=== RUN   TestPSU
--- PASS: TestPSU (75.00s)
PASS
ok  	github.com/facebook/time/calnex/verify/checks	226.514s

Lowering most timeouts expect for aforementioned.

Reviewed By: deathowl

Differential Revision: D52661410

Summary:
For config push, firmware upgrade and metrics export we have to have large timeout values (4 minutes). But for the rest we don't.
In real world it results in tests being slow running up to 4 minutes per test:
```
# go test github.com/facebook/time/calnex/verify/checks -v
=== RUN   TestGNSS
--- PASS: TestGNSS (75.00s)
=== RUN   TestHTTP
--- PASS: TestHTTP (75.01s)
=== RUN   TestPing
--- PASS: TestPing (1.01s)
=== RUN   TestPSU
--- PASS: TestPSU (75.00s)
PASS
ok  	github.com/facebook/time/calnex/verify/checks	226.514s
```
Lowering most timeouts expect for aforementioned.

Reviewed By: deathowl

Differential Revision: D52661410
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jan 10, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D52661410

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 1649917.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants