From 674e88d802ccfc2642015281377e61505433b65d Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 9 May 2019 23:08:35 +0100 Subject: [PATCH] [reactives3clienttest] inline results --- .../net/kemitix/s3thorp/awssdk/ReactiveS3ClientTest.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test/scala/net/kemitix/s3thorp/awssdk/ReactiveS3ClientTest.scala b/src/test/scala/net/kemitix/s3thorp/awssdk/ReactiveS3ClientTest.scala index acb1c49..d0d0ac0 100644 --- a/src/test/scala/net/kemitix/s3thorp/awssdk/ReactiveS3ClientTest.scala +++ b/src/test/scala/net/kemitix/s3thorp/awssdk/ReactiveS3ClientTest.scala @@ -19,8 +19,7 @@ class ReactiveS3ClientTest extends FunSpec { val expectedLastModified = Instant.now new ReactiveS3Client { self: S3Client => { it("should return Some(expected values)") { - val result: Option[(String, Instant)] = invoke(self) - assertResult(Some((expectedHash, expectedLastModified)))(result) + assertResult(Some((expectedHash, expectedLastModified)))(invoke(self)) } } override def s3Client: S3CatsIOClient = new S3CatsIOClient with UnderlyingS3AsyncClient { @@ -36,8 +35,7 @@ class ReactiveS3ClientTest extends FunSpec { describe("when throws NoSuchKeyException") { new ReactiveS3Client { self: S3Client => it("should return None") { - val result = invoke(self) - assertResult(None)(result) + assertResult(None)(invoke(self)) } override def s3Client: S3CatsIOClient = new S3CatsIOClient with UnderlyingS3AsyncClient { override def headObject(headObjectRequest: HeadObjectRequest): IO[HeadObjectResponse] =