-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): occassionally there are erroneous NoSuchBucket errors when…
… Backend tests are run. In that case, try and skip with a warning, instead of failing.
- Loading branch information
Showing
2 changed files
with
105 additions
and
53 deletions.
There are no files selected for viewing
18 changes: 13 additions & 5 deletions
18
src/test/java/org/janelia/saalfeldlab/n5/s3/N5AmazonS3MockTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
package org.janelia.saalfeldlab.n5.s3; | ||
|
||
import com.amazonaws.services.s3.AmazonS3; | ||
import org.janelia.saalfeldlab.n5.s3.N5AmazonS3Tests.UseCache; | ||
import org.janelia.saalfeldlab.n5.s3.mock.MockS3Factory; | ||
import org.junit.Ignore; | ||
import org.junit.Test; | ||
import org.junit.runners.Parameterized; | ||
|
||
import java.util.Arrays; | ||
import java.util.Collection; | ||
|
||
public class N5AmazonS3MockTests extends N5AmazonS3Tests { | ||
|
||
|
||
static { | ||
/* Should be no Erroneous Backend Failures with Mock Backend */ | ||
skipErroneousBackendFailures = false; | ||
} | ||
|
||
@Override | ||
protected AmazonS3 getS3() { | ||
|
||
return MockS3Factory.getOrCreateS3(); | ||
} | ||
|
||
@Test | ||
@Ignore("Erroneous NoSuchBucket Skipped for Mock Tests") | ||
@Override | ||
public void testErroneousNoSuchBucketFailure() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters