Skip to content

Instantly share code, notes, and snippets.

@cacoco
Created February 4, 2023 04:19
Show Gist options
  • Save cacoco/47ff96165061682322ab728a8ec9ed9a to your computer and use it in GitHub Desktop.
Save cacoco/47ff96165061682322ab728a8ec9ed9a to your computer and use it in GitHub Desktop.
import com.twitter.inject.server.{EmbeddedTwitterServer, FeatureTest}
class MyTwitterServerFeatureTest extends FeatureTest {
override protected val server =
new EmbeddedTwitterServer(
twitterServer = new MyTwitterServer,
flags = Map(
“dtab.add” -> “/$/inet=>/$/nil;/zk=>/$/nil”)
)
test("MyTwitterServer#starts") {
server.isHealthy
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment