Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
buger committed Mar 22, 2018
1 parent 25db4c2 commit b580a15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ func TestKeepAliveConns(t *testing.T) {

t.Run("Should use same connection", func(t *testing.T) {
// set keep alive option
config.Global.CloseConnections = false
config.Global.ProxyCloseConnections = false

// Allow 1 connection with 3 reads
upstream := createTestUptream(t, 1, 3)
Expand All @@ -1133,7 +1133,7 @@ func TestKeepAliveConns(t *testing.T) {
})

t.Run("Should use separate connection", func(t *testing.T) {
config.Global.CloseConnections = true
config.Global.ProxyCloseConnections = true

// Allow 3 connections with 1 read
upstream := createTestUptream(t, 3, 1)
Expand All @@ -1152,7 +1152,7 @@ func TestKeepAliveConns(t *testing.T) {
})

t.Run("Should respect max_conn_time", func(t *testing.T) {
config.Global.CloseConnections = false
config.Global.ProxyCloseConnections = false
// Allow 2 connection with 2 reads
upstream := createTestUptream(t, 2, 2)
defer upstream.Close()
Expand Down

0 comments on commit b580a15

Please sign in to comment.