Make raw message expiration configurable to improve tests time

This commit is contained in:
Leonid Bugaev
2015-07-21 10:06:10 +05:00
parent 5cc4228dcd
commit d62eccb655
5 changed files with 30 additions and 17 deletions
+2 -2
View File
@@ -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{})