[MM-57010] Include client type in websocket connections metric (#26763)
* Include client type in websocket connections metric * Unexport field
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
effb99301e
Коммит
4b508eed46
@@ -883,7 +883,7 @@ func TestCheckCSRFToken(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestOriginClient(t *testing.T) {
|
||||
func TestGetOriginClient(t *testing.T) {
|
||||
testCases := []struct {
|
||||
name string
|
||||
userAgent string
|
||||
@@ -945,7 +945,7 @@ func TestOriginClient(t *testing.T) {
|
||||
}
|
||||
|
||||
// Compute origin client
|
||||
actualClient := originClient(req)
|
||||
actualClient := GetOriginClient(req)
|
||||
|
||||
require.Equal(t, tc.expectedClient, actualClient)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user