Skip to content

Commit

Permalink
fix flaky fail to ban (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 authored Aug 1, 2023
1 parent 066b6c2 commit e13f8e2
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 e13f8e2

Please sign in to comment.