summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2026-02-21 23:47:28 +0100
committerJesper Jensen <jesper@jnsn.dev>2026-02-21 23:47:28 +0100
commit0c817cc0ae9a6e1b66d6e6ff45fa80bacabc58a9 (patch)
tree31b95a732c6523c4e0819cdcd129e0f4aed5eda8 /test
parent3c59ccdbf77ca8f6f90dd0a1b6d1f0a833e6f2fb (diff)
Parse the status closer to the database
Diffstat (limited to 'test')
-rw-r--r--test/http.c4
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);