mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
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:
1 parent
7a9d0f7008
commit
ef9155e660
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user