There was an error while loading. Please reload this page.
1 parent 64f6e35 commit b7c68e9Copy full SHA for b7c68e9
1 file changed
global/config_test.go
@@ -1071,7 +1071,7 @@ func TestDefaultProtocolConfig(t *testing.T) {
1071
// TestProtocolConfigFields tests individual fields of ProtocolConfig
1072
func TestProtocolConfigFields(t *testing.T) {
1073
t.Run("triple_fields_are_nested", func(t *testing.T) {
1074
- protocolType := reflect.TypeOf(ProtocolConfig{})
+ protocolType := reflect.TypeFor[ProtocolConfig]()
1075
_, hasSendSize := protocolType.FieldByName("MaxServerSendMsgSize")
1076
_, hasRecvSize := protocolType.FieldByName("MaxServerRecvMsgSize")
1077
assert.False(t, hasSendSize)
0 commit comments