After forthcoming changes to the curl plugin we cannot assume the
exact mirror we will be connected to after making the NBD connection.
So remove that assumption.

See: commit 38dccd848bd40cccdf012df7a606e13282aaeecb
---
 tests/test-retry-request-mirror.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/test-retry-request-mirror.c 
b/tests/test-retry-request-mirror.c
index cf42c5964..65440d2e5 100644
--- a/tests/test-retry-request-mirror.c
+++ b/tests/test-retry-request-mirror.c
@@ -58,7 +58,7 @@ main (int argc, char *argv[])
   const char *sockpath;
   CLEANUP_FREE char *usp_param = NULL;
   int i, j;
-  char state = 0;
+  char state;
   struct nbd_handle *nbd = NULL;
 
 #ifndef HAVE_CURLOPT_UNIX_SOCKET_PATH
@@ -105,6 +105,8 @@ main (int argc, char *argv[])
     if (nbd_connect_unix (nbd, sock /* NBD socket */) == -1)
       goto nbd_error;
 
+    state = 0;
+
     for (i = 0; i < 7 /* not divisible by 2 or 3 */; ++i) {
       char buf[512];
 
-- 
2.41.0

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://listman.redhat.com/mailman/listinfo/libguestfs

Reply via email to