agiledragon / agiledragon/gomonkey

tests not pass on M1/arm64 arch

Đang mở
#99 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
2.3k
Fork
192
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
1

Mô tả

```
gomonkey % pwd
/Users/chenlijun/go/src/github.com/agiledragon/gomonkey
gomonkey % docker run -it --rm -v /Users/chenlijun/go:/go --privileged golang bash
root@0d9aff1c6cf8:/go#
```

```
root@0d9aff1c6cf8:/go# cd src/github.com/agiledragon/gomonkey
root@0d9aff1c6cf8:/go/src/github.com/agiledragon/gomonkey# cd test/
root@0d9aff1c6cf8:/go/src/github.com/agiledragon/gomonkey/test# GOARCH=arm64 go test -gcflags=all=-l
.....................x
Failures:

* /go/src/github.com/agiledragon/gomonkey/test/apply_func_return_test.go
Line 35:
Expected: 'hello golang'
Actual: 'hello cpp'
(Should be equal)
goroutine 18 [running]:
github.com/agiledragon/gomonkey/v2/test.TestApplyFuncReturn.func1.1()
/go/src/github.com/agiledragon/gomonkey/test/apply_func_return_test.go:35 +0x2dc
github.com/jtolds/gls.(*ContextManager).SetValues.func1(0x0)
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/context.go:97 +0x36c
github.com/jtolds/gls.EnsureGoroutineId(0x40001086f0)
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/gid.go:19 +0xf8
github.com/jtolds/gls.(*ContextManager).SetValues(0x4000104520, 0x4000108690, 0x400011e0d8)
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/context.go:63 +0x168
github.com/agiledragon/gomonkey/v2/test.TestApplyFuncReturn.func1()
/go/src/github.com/agiledragon/gomonkey/test/apply_func_return_test.go:17 +0x64
github.com/jtolds/gls.(*ContextManager).SetValues.func1(0x0)
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/context.go:97 +0x36c
github.com/jtolds/gls.EnsureGoroutineId.func1()
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/gid.go:24 +0x2c
github.com/jtolds/gls._m(0x4000058d98?, 0x178978?)
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/stack_tags.go:108 +0x2c
github.com/jtolds/gls.github_com_jtolds_gls_markS(0x31fb01?, 0x4000058d80?)
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/stack_tags.go:56 +0x20
github.com/jtolds/gls.addStackTag(0x31fb20?, 0x3205e0?)
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/stack_tags.go:49 +0x24
github.com/jtolds/gls.EnsureGoroutineId(0x40001085a0)
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/gid.go:24 +0xd0
github.com/jtolds/gls.(*ContextManager).SetValues(0x4000104520, 0x4000108540, 0x4000148040)
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/context.go:63 +0x168
github.com/agiledragon/gomonkey/v2/test.TestApplyFuncReturn(0x0?)
/go/src/github.com/agiledragon/gomonkey/test/apply_func_return_test.go:15 +0x78
testing.tRunner(0x4000113040, 0x1eed00)
/usr/local/go/src/testing/testing.go:1439 +0x118
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:1486 +0x300

22 total assertions

--- FAIL: TestApplyFuncReturn (0.00s)
..........E
Errors:

* /go/src/github.com/agiledragon/gomonkey/test/apply_func_seq_test.go
Line 65: - double seq is less than call seq
goroutine 19 [running]:
panic({0x1a5220, 0x1fbb20})
/usr/local/go/src/runtime/panic.go:838 +0x210
github.com/agiledragon/gomonkey/v2.getDoubleFunc.func1({0x1ac080?, 0x0?, 0x1?})
/go/src/github.com/agiledragon/gomonkey/patch.go:308 +0xc4
github.com/agiledragon/gomonkey/v2/test.TestApplyFuncSeq.func1.3()
/go/src/github.com/agiledragon/gomonkey/test/apply_func_seq_test.go:65 +0x1a0
github.com/jtolds/gls.(*ContextManager).SetValues.func1(0x0)
/go/src/github.com/agiledragon/gomonkey/vendor/github.com/jtolds/gls/context.go:97 +0x3
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.