Storage: Change timeout for flaky test (#104065)
Change timeout for flaky test Co-authored-by: Marco de Abreu <18629099+marcoabreu@users.noreply.github.com>
This commit is contained in:
co-authored by
Marco de Abreu
parent
79eb1b0033
commit
b3b92e2471
@@ -882,7 +882,7 @@ func runTestIntegrationBackendListHistoryErrorReporting(t *testing.T, backend re
|
||||
},
|
||||
}
|
||||
|
||||
shortContext, cancel := context.WithTimeout(ctx, 1*time.Millisecond)
|
||||
shortContext, cancel := context.WithTimeout(ctx, 1*time.Microsecond)
|
||||
defer cancel()
|
||||
|
||||
res, err := server.List(shortContext, req)
|
||||
@@ -890,6 +890,7 @@ func runTestIntegrationBackendListHistoryErrorReporting(t *testing.T, backend re
|
||||
t.Log("list error:", err)
|
||||
if res != nil {
|
||||
t.Log("iterator error:", res.Error)
|
||||
t.Log("numItems:", len(res.Items))
|
||||
}
|
||||
require.True(t, err != nil || (res != nil && res.Error != nil))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user