mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-24 03:39:15 +00:00
Add cross-platform getInterfaces() and test.
This commit is contained in:
parent
9ddc47fa56
commit
518d33e26c
9
tests/testiface.nim
Normal file
9
tests/testiface.nim
Normal file
@ -0,0 +1,9 @@
|
||||
import unittest
|
||||
import ../libp2p/ipnet/iface
|
||||
|
||||
suite "OS interfaces list suite":
|
||||
test "Get interfaces list test":
|
||||
var ifaces = getInterfaces()
|
||||
for item in ifaces:
|
||||
echo item
|
||||
check len(ifaces) > 0
|
Loading…
x
Reference in New Issue
Block a user