aboutsummaryrefslogtreecommitdiff
path: root/server_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'server_test.go')
-rw-r--r--server_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/server_test.go b/server_test.go
index 881a11a..12e6a53 100644
--- a/server_test.go
+++ b/server_test.go
@@ -66,8 +66,8 @@ func TestReverseProxy(t *testing.T) {
// Test HTTP proxy
e := Entry{
- ServerName: frontURL.Host,
- Upstream: backServer.URL,
+ Host: frontURL.Host,
+ Upstream: backServer.URL,
}
if err := rpcClient.Call("GoXY.Add", e, nil); err != nil {
t.Error(err)
@@ -94,8 +94,8 @@ func TestReverseProxy(t *testing.T) {
// Test WebSocket proxy
e = Entry{
- ServerName: frontURL.Host,
- Upstream: "ws://" + wsURL.Host,
+ Host: frontURL.Host,
+ Upstream: "ws://" + wsURL.Host,
}
if err := rpcClient.Call("GoXY.Add", e, nil); err != nil {
t.Error(err)