test: give the failing-cut fixture 2 s (300 ms was tight on a loaded runner)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
pingqiuandClaude Opus 5.5 committed 2026-11-21 02:48:26 -08:00
1 parent 7a9d0f7008
commit ef9155e660
1 file changed
+1 -1
+1 -1
View File
@@ -165,7 +165,7 @@ func TestOwnBatch_UploadsAChunkRememberedEqualByAFailedCut(t *testing.T) {
remote.mu.Lock()
remote.failPut = errors.New("test: put refused")
remote.mu.Unlock()
failCtx, cancelFail := context.WithTimeout(context.Background(), 300*time.Millisecond)
failCtx, cancelFail := context.WithTimeout(context.Background(), 2*time.Second)
defer cancelFail()
if _, err := layer.Cut(failCtx); err == nil {
t.Fatal("fixture: the ordinary cut must fail")