diff --git a/e2e/failtoban_test.go b/e2e/failtoban_test.go index a1dcdc8c..412b1b38 100644 --- a/e2e/failtoban_test.go +++ b/e2e/failtoban_test.go @@ -4,6 +4,7 @@ import ( "io" "strings" "testing" + "time" ) func TestFailtoban(t *testing.T) { @@ -76,6 +77,8 @@ func TestFailtoban(t *testing.T) { defer killCmd(c) _ = c.Wait() + time.Sleep(time.Second) // TODO ugly workaround, wait for stdout flush + s, _ := io.ReadAll(stdout) if !strings.Contains(string(s), "Connection closed by 127.0.0.1") {