From 49bf9dbf807c1937696eaca507b2d4c7568bf7de Mon Sep 17 00:00:00 2001 From: Mahmoud-Emad Date: Wed, 3 Sep 2025 10:24:19 +0300 Subject: [PATCH] test: Update ping test assertions - Use boolean `true` for successful ping - Use boolean `false` for ping timeout - Use boolean `false` for unknown host --- lib/osal/core/net_test.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/osal/core/net_test.v b/lib/osal/core/net_test.v index c9d65b1a..eebaaaba 100644 --- a/lib/osal/core/net_test.v +++ b/lib/osal/core/net_test.v @@ -7,15 +7,15 @@ fn test_ipaddr_pub_get() { fn test_ping() { x := ping(address: '127.0.0.1', retry: 1)! - assert x == .ok + assert x == true } fn test_ping_timeout() ! { x := ping(address: '192.168.145.154', retry: 5, nr_ok: 1)! - assert x == .timeout + assert x == false } fn test_ping_unknownhost() ! { x := ping(address: '12.902.219.1', retry: 1, nr_ok: 1)! - assert x == .unknownhost + assert x == false }