Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbt 1.3.0 #1084

Merged
merged 1 commit into from
Sep 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
*/
package com.netflix.atlas.guice

import java.util.concurrent.TimeUnit

import akka.actor.ActorSystem
import com.google.inject.AbstractModule
import com.google.inject.Guice
import com.netflix.atlas.akka.ActorService
Expand All @@ -26,6 +25,9 @@ import com.typesafe.config.Config
import com.typesafe.config.ConfigFactory
import org.scalatest.FunSuite

import scala.concurrent.Await
import scala.concurrent.duration.Duration

class CloudWatchModuleSuite extends FunSuite {

test("load module") {
Expand All @@ -40,20 +42,7 @@ class CloudWatchModuleSuite extends FunSuite {
val actors = injector.getInstance(classOf[ActorService])
assert(actors.isHealthy)
actors.stop()
}

ignore("run locally") {
val deps = new AbstractModule {

override def configure(): Unit = {
bind(classOf[Config]).toInstance(ConfigFactory.load("local"))
bind(classOf[Registry]).toInstance(new DefaultRegistry())
}
}
val injector = Guice.createInjector(deps, new CloudWatchModule)
val actors = injector.getInstance(classOf[ActorService])
assert(actors.isHealthy)
Thread.sleep(TimeUnit.MILLISECONDS.convert(10, TimeUnit.MINUTES))
actors.stop()
Await.ready(injector.getInstance(classOf[ActorSystem]).terminate(), Duration.Inf)
}
}
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.8
sbt.version=1.3.0