Skip to content

Commit

Permalink
fix flaky fail to ban
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed Aug 1, 2023
1 parent 586d2bc commit d42ab0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions e2e/failtoban_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"io"
"strings"
"testing"
"time"
)

func TestFailtoban(t *testing.T) {
Expand Down Expand Up @@ -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") {
Expand Down

0 comments on commit d42ab0d

Please sign in to comment.