Initial support for tracking connection metrics
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -45,8 +46,10 @@ func Test_routesImpl_FindBackendForServerAddress(t *testing.T) {
|
||||
|
||||
r.CreateMapping(tt.mapping.serverAddress, tt.mapping.backend)
|
||||
|
||||
if got := r.FindBackendForServerAddress(tt.args.serverAddress); got != tt.want {
|
||||
if got, server := r.FindBackendForServerAddress(tt.args.serverAddress); got != tt.want {
|
||||
t.Errorf("routesImpl.FindBackendForServerAddress() = %v, want %v", got, tt.want)
|
||||
} else {
|
||||
assert.Equal(t, tt.mapping.serverAddress, server)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user