Skip to content

Instantly share code, notes, and snippets.

@trane
Last active October 1, 2015 22:19
Show Gist options
  • Select an option

  • Save trane/5cbc28552d8d4e071ab0 to your computer and use it in GitHub Desktop.

Select an option

Save trane/5cbc28552d8d4e071ab0 to your computer and use it in GitHub Desktop.
import com.twitter.finagle.memcached
case object FailingMock extends memcached.MockClient {
override def add(key: String, flags: Int, expiry: Time, value: Buf): Future[Boolean] =
Future.exception(new Exception("oopsie"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment