[libgweather/wip/hadess/serialisation-fix: 12/17] tests: Fix metar code test



commit 70d4a03b11ab117e07bcbedb84001f3531eb1bc2
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Oct 9 18:43:20 2018 +0200

    tests: Fix metar code test
    
    ac03cab9bc55d487ec12d5d457dd041890474b66 now checks for valid
    coordinates, but we didn't set that structure member in our hacky test.

 libgweather/test_metar.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/libgweather/test_metar.c b/libgweather/test_metar.c
index 535ddf6..7caf194 100644
--- a/libgweather/test_metar.c
+++ b/libgweather/test_metar.c
@@ -61,6 +61,7 @@ main (int argc, char **argv)
 
         info = g_object_new (GWEATHER_TYPE_INFO, NULL);
         info->priv->location.code = g_strdup (code);
+        info->priv->location.latlon_valid = TRUE;
         info->priv->session = soup_session_new ();
         g_signal_connect (G_OBJECT (info), "updated",
                           G_CALLBACK (weather_updated_cb), loop);


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