mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 21:47:07 +02:00
add "forceProxy = false" to tests
This commit is contained in:
@@ -52,6 +52,7 @@ class ImageUploadTesting {
|
|||||||
Nip96Retriever()
|
Nip96Retriever()
|
||||||
.loadInfo(
|
.loadInfo(
|
||||||
server.baseUrl,
|
server.baseUrl,
|
||||||
|
false,
|
||||||
)
|
)
|
||||||
|
|
||||||
val bitmap = Bitmap.createBitmap(200, 300, Bitmap.Config.ARGB_8888)
|
val bitmap = Bitmap.createBitmap(200, 300, Bitmap.Config.ARGB_8888)
|
||||||
@@ -80,6 +81,7 @@ class ImageUploadTesting {
|
|||||||
alt = null,
|
alt = null,
|
||||||
sensitiveContent = null,
|
sensitiveContent = null,
|
||||||
serverInfo,
|
serverInfo,
|
||||||
|
forceProxy = { false },
|
||||||
onProgress = {},
|
onProgress = {},
|
||||||
context = InstrumentationRegistry.getInstrumentation().targetContext,
|
context = InstrumentationRegistry.getInstrumentation().targetContext,
|
||||||
)
|
)
|
||||||
@@ -106,7 +108,7 @@ class ImageUploadTesting {
|
|||||||
Assert.assertTrue("${server.name}: Invalid result url", url.startsWith("http"))
|
Assert.assertTrue("${server.name}: Invalid result url", url.startsWith("http"))
|
||||||
|
|
||||||
val imageData: ByteArray =
|
val imageData: ByteArray =
|
||||||
ImageDownloader().waitAndGetImage(url)
|
ImageDownloader().waitAndGetImage(url, false)
|
||||||
?: run {
|
?: run {
|
||||||
fail("${server.name}: Should not be null")
|
fail("${server.name}: Should not be null")
|
||||||
return
|
return
|
||||||
|
@@ -46,7 +46,7 @@ class OkHttpOtsTest {
|
|||||||
|
|
||||||
@Before
|
@Before
|
||||||
fun setup() {
|
fun setup() {
|
||||||
OtsEvent.otsInstance = OpenTimestamps(OkHttpBlockstreamExplorer(), OkHttpCalendarBuilder())
|
OtsEvent.otsInstance = OpenTimestamps(OkHttpBlockstreamExplorer(forceProxy = { false }), OkHttpCalendarBuilder(forceProxy = { false }))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user