diff --git a/tests/unittests/tests-gcoap/Makefile.include b/tests/unittests/tests-gcoap/Makefile.include
index db3b1c352758c79367172e4f9c7a9d19ba74c3ca..c32f5a9edc71f619a620a7fb9feba39ccd4a2997 100644
--- a/tests/unittests/tests-gcoap/Makefile.include
+++ b/tests/unittests/tests-gcoap/Makefile.include
@@ -1,9 +1,8 @@
 USEPKG += nanocoap
-# Required by nanocoap to compile nanocoap_sock.
-USEMODULE += gnrc_sock_udp
 
 # Specify the mandatory networking modules
 USEMODULE += gcoap
+USEMODULE += gnrc_sock_udp
 USEMODULE += gnrc_ipv6
 
 USEMODULE += random