diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2023-07-17 11:59:35 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2023-07-17 11:59:35 +0200 |
commit | b8a8e973b079978d1af22ba043516e7985fd3809 (patch) | |
tree | 6f68c25dacbb943fa24d11c2e6a5bf638e1a222f /nixos/tests/gitea.nix | |
parent | 42105b2ba37a5f98b0996c34aa5dc3979975c6a4 (diff) |
nixos/tests/gitea: fix
* Since Gitea 1.20 the request to `/commits` requires at least one retry because it appears to take a moment until Gitea actually knows that this repo isn't empty anymore (previously on 1.20 this failed with HTTP 409 which occurs when the requested repo is empty). * Remove `*.shutdown()`, for some reason they hang regularly for unknown reasons.
Diffstat (limited to 'nixos/tests/gitea.nix')
-rw-r--r-- | nixos/tests/gitea.nix | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/nixos/tests/gitea.nix b/nixos/tests/gitea.nix index 2285bb5a42529..b8926cfa35465 100644 --- a/nixos/tests/gitea.nix +++ b/nixos/tests/gitea.nix @@ -121,14 +121,10 @@ let client2.succeed(f"GIT_SSH_COMMAND='{GIT_SSH_COMMAND}' git clone {REPO}") client2.succeed('test "$(cat repo/testfile | xargs echo -n)" = "hello world"') - server.succeed( + server.wait_until_succeeds( 'test "$(curl http://localhost:3000/api/v1/repos/test/repo/commits ' + '-H "Accept: application/json" | jq length)" = "1"' ) - - client1.shutdown() - client2.shutdown() - server.shutdown() ''; }); in |