mirror of https://github.com/stretchr/testify.git
parent
310548cda6
commit
c5d499e514
|
@ -2205,7 +2205,7 @@ func TestEventuallyTrue(t *testing.T) {
|
||||||
state := 0
|
state := 0
|
||||||
condition := func() bool {
|
condition := func() bool {
|
||||||
defer func() {
|
defer func() {
|
||||||
state = state + 1
|
state += 1
|
||||||
}()
|
}()
|
||||||
return state == 2
|
return state == 2
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ func (rw *TestResponseWriter) Write(bytes []byte) (int, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// add these bytes to the output string
|
// add these bytes to the output string
|
||||||
rw.Output = rw.Output + string(bytes)
|
rw.Output += string(bytes)
|
||||||
|
|
||||||
// return normal values
|
// return normal values
|
||||||
return 0, nil
|
return 0, nil
|
||||||
|
|
Loading…
Reference in New Issue