diff --git a/stdlib/MbedTLS_jll/test/runtests.jl b/stdlib/MbedTLS_jll/test/runtests.jl
index 6948fdd2093f8..18d777902b5b0 100644
--- a/stdlib/MbedTLS_jll/test/runtests.jl
+++ b/stdlib/MbedTLS_jll/test/runtests.jl
@@ -4,7 +4,7 @@ using Test, Libdl, MbedTLS_jll
 
 @testset "MbedTLS_jll" begin
     vstr = zeros(UInt8, 32)
-    ccall((:mbedtls_version_get_string, libmbedtls), Cvoid, (Ref{UInt8},), vstr)
+    ccall((:mbedtls_version_get_string, libmbedcrypto), Cvoid, (Ref{UInt8},), vstr)
     vn = VersionNumber(unsafe_string(pointer(vstr)))
     @test vn == v"2.24.0"
 end