Skip to content

Commit 78706dc

Browse files
committed
test commit
1 parent ea975e8 commit 78706dc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

std/net/lookup_test.jule

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// license that can be found in the LICENSE file.
44

55
use "std/testing"
6+
use "std/time"
67

78
fn 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
7172
fn 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

std/runtime/strconv.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) }

0 commit comments

Comments
 (0)