Skip to content

Commit

Permalink
added: DoNotDiscover on NetworkTest
Browse files Browse the repository at this point in the history
Test is unstable and makes the CI fails very often.
This test will be replaced by a more stable one.
  • Loading branch information
Ant-hem authored and aseure committed Jul 18, 2019
1 parent 543a19c commit 95c7c31
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/test/scala/algolia/NetworkTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ import java.net.UnknownHostException
import java.util.concurrent.{ExecutionException, TimeUnit}

import algolia.AlgoliaDsl._
import org.scalatest.DoNotDiscover

import scala.concurrent.duration._
import scala.util.Try

@DoNotDiscover
class NetworkTest extends AlgoliaTest {

describe("timeout on DNS resolution") {
Expand All @@ -44,7 +46,7 @@ class NetworkTest extends AlgoliaTest {
utils,
Seq(
s"https://scala-dsn.algolia.biz", //Special domain that timeout on DNS resolution
s"https://applicationId-1.algolianet.com"
s"https://$AlgoliaTest.applicationId-1.algolianet.com"
),
indexingHosts
)
Expand Down Expand Up @@ -83,7 +85,7 @@ class NetworkTest extends AlgoliaTest {
utils,
Seq(
s"https://notcp-xx-1.algolianet.com", //Special domain that timeout on connect=
s"https://applicationId-1.algolianet.com"
s"https://$AlgoliaTest.applicationId-1.algolianet.com"
),
indexingHosts
)
Expand Down Expand Up @@ -119,7 +121,7 @@ class NetworkTest extends AlgoliaTest {
utils,
Seq(
s"https://will-not-exists-ever.algolianet.com", //Should return UnknownHostException
s"https://applicationId-1.algolianet.com"
s"https://$AlgoliaTest.applicationId-1.algolianet.com"
),
indexingHosts
)
Expand Down

0 comments on commit 95c7c31

Please sign in to comment.