Skip to content

Commit b6bc662

Browse files
committed
test: Skip TestOptions_CopyRateLimit when not using CopyBytes
The only `FileCopyMethod` that supports this is CopyBytes.
1 parent f84a133 commit b6bc662

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

all_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ func TestOptions_PreserveOwner(t *testing.T) {
362362
}
363363

364364
func TestOptions_CopyRateLimit(t *testing.T) {
365+
if defaultCopyMethodName != "CopyBytes" {
366+
t.Skipf("Can only test WrapReader with CopyBytes method, not %s", defaultCopyMethodName)
367+
}
365368

366369
file, err := os.Create("test/data/case16/large.file")
367370
if err != nil {

0 commit comments

Comments
 (0)