Skip to content

Commit

Permalink
Terratest timeout 15m (#451)
Browse files Browse the repository at this point in the history
It happened that long running test `TestK8gbBasicRoundRobinExample` didn't finish [during 10 minutes](https://github.com/AbsaOSS/k8gb/pull/450/checks?check_run_id=2380389415#step:7:3939)
From what I see in the logs, test started in 4th minute of terratest (some terratests already passed).
`TestK8gbBasicRoundRobinExample` was not able to scale GSLB in the last phase of test and was waiting, while timeout occured.
see: [text log](https://pipelines.actions.githubusercontent.com/fdhui6E3r0qyGjKGI7JL2oBgou8JslTAp47a0VPoFebyddvI6q/_apis/pipelines/1/runs/4893/signedlogcontent/3?urlExpires=2021-04-19T12%3A28%3A36.7191880Z&urlSigningMethod=HMACV1&urlSignature=Dv0kIy48JHrB0wGt8ueUp90%2FtisqMuQ8w4QHV2dr5b4%3D)
I saw this behavior first time.

 - Regarding documentation I extended [timeout to 12m](https://terratest.gruntwork.io/docs/testing-best-practices/timeouts-and-logging/).

Signed-off-by: kuritka <[email protected]>

Update Makefile

12min to 15min

Co-authored-by: Yury Tsarev <[email protected]>

Co-authored-by: Yury Tsarev <[email protected]>
  • Loading branch information
kuritka and ytsarev authored Apr 21, 2021
1 parent 8150998 commit 7a222ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ test-failover:
# executes terra-tests
.PHONY: terratest
terratest: # Run terratest suite
cd terratest/test/ && go mod download && go test -v
cd terratest/test/ && go mod download && go test -v -timeout 15m -parallel=12

.PHONY: version
version:
Expand Down

0 comments on commit 7a222ff

Please sign in to comment.