Dear,
i am getting the below error when i am running $ ./test.sh TestRegistration
=== RUN TestRegistration
— FAIL: TestRegistration (0.01s)
registration_test.go:96:
Error Trace: registration_test.go:96
Error: Expected nil, but got: 0x6f
Test: TestRegistration
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa3b72f]
goroutine 250 [running]:
testing.tRunner.func1(0xc0015dee00)
/usr/local/go/src/testing/testing.go:830 +0x392
panic(0x1338fc0, 0x2317770)
/usr/local/go/src/runtime/panic.go:522 +0x1b5
git.cs.nctu.edu.tw/calee/sctp.(*SCTPConn).fd(…)
/home/nano/go/src/git.cs.nctu.edu.tw/calee/sctp/sctp.go:373
git.cs.nctu.edu.tw/calee/sctp.(*SCTPConn).SCTPWrite(0x0, 0xc003168000, 0x39, 0x40, 0x0, 0x0, 0x0, 0x1)
/home/nano/go/src/git.cs.nctu.edu.tw/calee/sctp/sctp_linux.go:88 +0x4f
git.cs.nctu.edu.tw/calee/sctp.(*SCTPConn).Write(…)
/home/nano/go/src/git.cs.nctu.edu.tw/calee/sctp/sctp.go:385
free5gc/src/test_test.TestRegistration(0xc0015dee00)
/home/nano/go/src/free5gc/src/test/registration_test.go:105 +0x295
testing.tRunner(0xc0015dee00, 0x1574b78)
/usr/local/go/src/testing/testing.go:865 +0xc0
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:916 +0x35a
exit status 2
FAIL free5gc/src/test 1.688s