Skip to content

Commit 6797fa6

Browse files
jukkarcfriedt
authored andcommitted
net: sockets: Allow test to override DNS timeout
The minimum 1 sec timeout for getaddrinfo() call is too long when executing queries from network tests. So allow test to override the minimum and set it to very low value. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 80e458c commit 6797fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/lib/sockets/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ config NET_SOCKETS_CONNECT_TIMEOUT
4242
config NET_SOCKETS_DNS_TIMEOUT
4343
int "Timeout value in milliseconds for DNS queries"
4444
default 2000
45-
range 1000 300000
45+
range 1000 300000 if !NET_TEST
4646
depends on DNS_RESOLVER
4747
help
4848
This variable specifies time in milliseconds after which DNS

0 commit comments

Comments
 (0)