aboutsummaryrefslogtreecommitdiff
path: root/server_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-29 16:26:30 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-03-29 16:26:30 +0200
commit0d1620f5deaa4df8cee1870d6dce707b38aa8db9 (patch)
treebfe172375ef4bb9d60887159cf6edf4b3107fdee /server_test.go
parentf7bc45795104b666c61473e52f0d9bda865744af (diff)
Rename
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)