mirror of
https://github.com/miniflux/v2.git
synced 2024-09-27 21:02:41 +02:00
Fix flaky test
This commit is contained in:
parent
1658db7f10
commit
9fa086e471
@ -19,7 +19,7 @@ func TestClientWithDelay(t *testing.T) {
|
||||
|
||||
func TestClientWithError(t *testing.T) {
|
||||
clt := New("http://httpbin.org/status/502")
|
||||
clt.ClientTimeout = 1
|
||||
clt.ClientTimeout = 5
|
||||
response, err := clt.Get()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@ -30,7 +30,7 @@ func TestClientWithError(t *testing.T) {
|
||||
}
|
||||
|
||||
if !response.HasServerFailure() {
|
||||
t.Fatal(`A 500 error is considered as server failure`)
|
||||
t.Fatal(`A 502 error is considered as server failure`)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user