Skip to content

Commit be2558d

Browse files
committed
Remove unused variable
1 parent 215230d commit be2558d

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

tests/src/test/scala/org/apache/openwhisk/core/service/DataManagementServiceTests.scala

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import akka.testkit.{ImplicitSender, TestActor, TestActorRef, TestKit, TestProbe
55
import akka.util.Timeout
66
import common.StreamLogging
77
import org.apache.openwhisk.core.entity.SchedulerInstanceId
8-
import org.apache.openwhisk.core.etcd.EtcdClient
98
import org.junit.runner.RunWith
109
import org.scalamock.scalatest.MockFactory
1110
import org.scalatest.concurrent.ScalaFutures
@@ -52,7 +51,6 @@ class DataManagementServiceTests
5251
behavior of "DataManagementService"
5352

5453
it should "distribute work to etcd worker" in {
55-
val etcdClient = mock[EtcdClient]
5654
val watcherService = TestProbe()
5755
val worker = TestProbe()
5856

@@ -77,7 +75,6 @@ class DataManagementServiceTests
7775

7876
it should "handle request sequentially for a same key" in {
7977
val queue = mutable.Queue.empty[String]
80-
val etcdClient = mock[EtcdClient]
8178
val watcherService = TestProbe()
8279
val workerFactory = (f: ActorRefFactory) =>
8380
f.actorOf(Props(new Actor {
@@ -116,7 +113,6 @@ class DataManagementServiceTests
116113

117114
it should "handle request concurrently for different keys" in {
118115
val queue = mutable.Queue.empty[String]
119-
val etcdClient = mock[EtcdClient]
120116
val watcherService = TestProbe()
121117
val workerFactory = (f: ActorRefFactory) =>
122118
f.actorOf(Props(new Actor {
@@ -153,7 +149,6 @@ class DataManagementServiceTests
153149
}
154150

155151
it should "remove unnecessary operation" in {
156-
val etcdClient = mock[EtcdClient]
157152
val watcherService = TestProbe()
158153
val worker = TestProbe()
159154

@@ -181,8 +176,6 @@ class DataManagementServiceTests
181176
}
182177

183178
it should "register data when the target endpoint is removed" in {
184-
val etcdClient = mock[EtcdClient]
185-
186179
val watcherService = TestProbe()
187180
val worker = TestProbe()
188181
val key = "testKey"
@@ -196,8 +189,6 @@ class DataManagementServiceTests
196189
}
197190

198191
it should "ignore prefixed endpoint-removed results" in {
199-
val etcdClient = mock[EtcdClient]
200-
201192
val watcherService = TestProbe()
202193
val worker = TestProbe()
203194
val key = "testKey"
@@ -210,8 +201,6 @@ class DataManagementServiceTests
210201
}
211202

212203
it should "deregister data" in {
213-
val etcdClient = mock[EtcdClient]
214-
215204
val watcherService = TestProbe()
216205
val worker = TestProbe()
217206
watcherService.setAutoPilot((sender, msg) => {
@@ -231,8 +220,6 @@ class DataManagementServiceTests
231220
}
232221

233222
it should "store the resource data" in {
234-
val etcdClient = mock[EtcdClient]
235-
236223
val watcherService = TestProbe()
237224
val worker = TestProbe()
238225
val key = "testKey"
@@ -246,8 +233,6 @@ class DataManagementServiceTests
246233
}
247234

248235
it should "not store the resource data if there is no change from the last one" in {
249-
val etcdClient = mock[EtcdClient]
250-
251236
val watcherService = TestProbe()
252237
val worker = TestProbe()
253238
val key = "testKey"
@@ -265,8 +250,6 @@ class DataManagementServiceTests
265250
}
266251

267252
it should "store the resource data if there is change from the last one" in {
268-
val etcdClient = mock[EtcdClient]
269-
270253
val watcherService = TestProbe()
271254
val worker = TestProbe()
272255
val key = "testKey"

0 commit comments

Comments
 (0)