[libsoup/autobahn-integration-new: 24/29] autobahn-test.c: Autobahn tests go from 1 to num_cases




commit 475662946fa090165947d6711b7e13d3763fcd96
Author: Diego Pino Garcia <dpino igalia com>
Date:   Thu Feb 25 13:53:42 2021 +0000

    autobahn-test.c: Autobahn tests go from 1 to num_cases

 tests/autobahn/autobahn-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/autobahn/autobahn-test.c b/tests/autobahn/autobahn-test.c
index ebbef4e0..b782eeb0 100644
--- a/tests/autobahn/autobahn-test.c
+++ b/tests/autobahn/autobahn-test.c
@@ -242,7 +242,7 @@ int main (int argc, char *argv[])
         session = soup_session_new ();
         soup_session_add_feature_by_type (session, SOUP_TYPE_WEBSOCKET_EXTENSION_MANAGER);
 
-        for (int i = 0; i < num_cases; i++) {
+        for (int i = 1; i <= num_cases; i++) {
                 char *test_path = g_strdup_printf ("/autobahn/%u", i);
 
                 TestBundle *bundle = g_new0 (TestBundle, 1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]