diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2026-02-21 23:47:28 +0100 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2026-02-21 23:47:28 +0100 |
| commit | 0c817cc0ae9a6e1b66d6e6ff45fa80bacabc58a9 (patch) | |
| tree | 31b95a732c6523c4e0819cdcd129e0f4aed5eda8 /test/http.c | |
| parent | 3c59ccdbf77ca8f6f90dd0a1b6d1f0a833e6f2fb (diff) | |
Parse the status closer to the database
Diffstat (limited to 'test/http.c')
| -rw-r--r-- | test/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/http.c b/test/http.c index c5a3b2a..11de092 100644 --- a/test/http.c +++ b/test/http.c @@ -291,9 +291,9 @@ int main(int argc, char **argv) { // Backups are ordered by started DESC, so newest first // The most recent backup should be RUNNING - assert(strcmp(backups_result->backups[0].status, "RUNNING") == 0); + assert(backups_result->backups[0].status == STATUS_RUNNING); // The previous backup should be INTERRUPTED - assert(strcmp(backups_result->backups[1].status, "INTERRUPTED") == 0); + assert(backups_result->backups[1].status == STATUS_INTERRUPTED); // The interrupted backup should have a completed timestamp assert(backups_result->backups[1].completed.tv_sec > 0); |
