Skip to content

websvr_test.go 里面的国密测试没过这个是预期的结果? #16

@busyfree

Description

@busyfree

测试代码里的server是配置的config, err := loadAutoSwitchConfig() 自动切换支持,是不是应该支持gm客户端访问的?

func Test_tls(t *testing.T) {

=== RUN   Test_tls
>> HTTP Over [GMSSL/TLS] running...
HTTP/1.1 200 OK
Date: Fri, 20 Jun 2025 02:36:07 GMT
Content-Length: 6
Content-Type: text/plain; charset=utf-8
Connection: close

hello
>> RSA TLS [PASS]
handshake error : local error: tls: no renegotiation
handshake error : EOF
panic: EOF

goroutine 14 [running]:
github.com/blockchain-jd-com/framework-go/gmsm/gmtls/websvr.gmClientRun()
	/github.com/blockchain-jd-com/framework-go/gmsm/gmtls/websvr/websvr_test.go:103 +0x49d
created by github.com/blockchain-jd-com/framework-go/gmsm/gmtls/websvr.Test_tls in goroutine 7
	/github.com/blockchain-jd-com/framework-go/gmsm/gmtls/websvr/websvr_test.go:174 +0x85

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions