mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-05-01 17:36:44 +00:00
feat(cli): reorganize repair commands under unified 'vikunja repair' parent (#2300)
Consolidate four scattered repair/maintenance CLI commands into a unified `vikunja repair` parent command with subcommands.
This commit is contained in:
@@ -71,13 +71,14 @@ func TestDoPostWithHeaders_GivesUpAfter3Retries(t *testing.T) {
|
||||
if !strings.Contains(err.Error(), expectedBody) {
|
||||
t.Errorf("expected error message to contain response body %q, got: %s", expectedBody, err.Error())
|
||||
}
|
||||
if resp == nil {
|
||||
if resp != nil {
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode != http.StatusInternalServerError {
|
||||
t.Errorf("expected status 500, got %d", resp.StatusCode)
|
||||
}
|
||||
} else {
|
||||
t.Fatal("expected response to be returned with error, got nil")
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode != http.StatusInternalServerError {
|
||||
t.Errorf("expected status 500, got %d", resp.StatusCode)
|
||||
}
|
||||
if attempts.Load() != 3 {
|
||||
t.Errorf("expected 3 attempts, got %d", attempts.Load())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user