From 1fb8d6c0dce6badf7cd566713978260fa8f1a163 Mon Sep 17 00:00:00 2001
From: Joscha Schmiedt <joscha@schmiedt.dev>
Date: Sun, 27 Oct 2024 20:43:20 +0100
Subject: [PATCH] Add deletion of retreival transaction

If the download transaction is not deleted, the file stays open (and will cause a crash of the test).
---
 test/test_clinkahead.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/test_clinkahead.cpp b/test/test_clinkahead.cpp
index aab9df8..164b89d 100644
--- a/test/test_clinkahead.cpp
+++ b/test/test_clinkahead.cpp
@@ -628,4 +628,7 @@ TEST_F(test_clinkahead, test_up_n_download_file) {
   return_code =
     linkahead_transaction_transaction_get_result_set(&retrieve_transaction_1, &result_set);
   EXPECT_EQ(return_code, 0);
+
+  return_code = linkahead_transaction_delete_transaction(&retrieve_transaction_1);
+  EXPECT_EQ(return_code, 0);
 }
-- 
GitLab