File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 33// license that can be found in the LICENSE file.
44
55use "std/testing"
6+ use "std/time"
67
78fn isValidIP(network: Network, mut ip: IP): bool {
89 if len(ip) != IPv6Len && len(ip) != IPv4Len {
@@ -69,11 +70,9 @@ fn testLookupIPJule(t: &testing::T) {
6970
7071#test
7172fn testLookupIPJuleTCP(t: &testing::T) {
72- t.Skip() // Skip TCP tests because it may be fail on CI.
73- ret
74-
7573 DefaultResolver.PreferJule = true
7674 conf.useTCP = true
75+ conf.timeout = time::Second * 20
7776 _testLookupIP(t)
7877 DefaultResolver.PreferJule = false
7978 conf.useTCP = false
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ fn juleToStr[T](x: T): str {
280280 | comptime::Any | comptime::TypeEnum | comptime::Trait:
281281 unsafe {
282282 dt := (*runtime::DynamicType)(&x)
283- ret sys::Addrcall[str](uintptr(dt.Type.ToStr), dt.Data.Data )
283+ ret sys::Addrcall[str](uintptr(dt.Type.ToStr), dt.Data.Ptr )
284284 }
285285 | comptime::Func:
286286 ret unsafe { ptrToStr((*runtime::Func)(&x).Addr) }
You can’t perform that action at this time.
0 commit comments