Update log_test.go
This commit is contained in:
		
							parent
							
								
									315749161c
								
							
						
					
					
						commit
						d3346fa0a0
					
				| 
						 | 
					@ -4,7 +4,7 @@ import (
 | 
				
			||||||
	"testing"
 | 
						"testing"
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	"github.com/stretchr/testify/assert"
 | 
						"github.com/stretchr/testify/assert"
 | 
				
			||||||
 )
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestLog(t *testing.T) {
 | 
					func TestLog(t *testing.T) {
 | 
				
			||||||
	assertion = assert.New(t)
 | 
						assertion = assert.New(t)
 | 
				
			||||||
| 
						 | 
					@ -13,7 +13,7 @@ func TestLog(t *testing.T) {
 | 
				
			||||||
	LogTimestamp(false)
 | 
						LogTimestamp(false)
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
	req, _ := http.NewRequest("GET", "https://google.com/lola/duda?q=wasd")
 | 
						req, _ := http.NewRequest("GET", "https://google.com/lola/duda?q=wasd")
 | 
				
			||||||
  log := Log.GetHTTP(req)
 | 
						log := LogHTTP(req)
 | 
				
			||||||
	_, ok := log.Data["remote"]
 | 
						_, ok := log.Data["remote"]
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
 	assertion.NotNil(ok, "remote address not set in logger")
 | 
					 	assertion.NotNil(ok, "remote address not set in logger")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue