mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Make raw message expiration configurable to improve tests time
This commit is contained in:
+2
-2
@@ -105,7 +105,7 @@ func TestEchoMiddleware(t *testing.T) {
|
||||
quit := make(chan int)
|
||||
|
||||
// Catch traffic from one service
|
||||
input := NewRAWInput(from.Listener.Addr().String())
|
||||
input := NewRAWInput(from.Listener.Addr().String(), testRawExpire)
|
||||
|
||||
// And redirect to another
|
||||
output := NewHTTPOutput(to.URL, &HTTPOutputConfig{})
|
||||
@@ -156,7 +156,7 @@ func TestTokenMiddleware(t *testing.T) {
|
||||
quit := make(chan int)
|
||||
|
||||
// Catch traffic from one service
|
||||
input := NewRAWInput(from)
|
||||
input := NewRAWInput(from, testRawExpire)
|
||||
|
||||
// And redirect to another
|
||||
output := NewHTTPOutput(to, &HTTPOutputConfig{})
|
||||
|
||||
Reference in New Issue
Block a user