Skip to content

Commit 235ffaa

Browse files
committed
Fix some test error
1 parent eb0db27 commit 235ffaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/test/scala/org/apache/openwhisk/operation/RuntimeConfigurationTests.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class RuntimeConfigurationTests
5252

5353
val kind = "nodejs:10"
5454
val memory = 128
55-
var count = new Random().nextInt(3) + 1
55+
var initialCount = new Random().nextInt(3) + 1
5656

5757
def getRuntimes = {
5858
s""" {
@@ -71,7 +71,7 @@ class RuntimeConfigurationTests
7171
"attachmentType": "text/plain"
7272
},
7373
"stemCells": [{
74-
"count": ${count},
74+
"initialCount": ${initialCount},
7575
"memory": "${memory} MB"
7676
}]
7777
}]
@@ -122,7 +122,7 @@ class RuntimeConfigurationTests
122122
val nodejs10ContainerData = prewarmContainerDataList.items.filter { prewarmContainerData =>
123123
prewarmContainerData.kind == kind && prewarmContainerData.memory == memory
124124
}
125-
nodejs10ContainerData.head.number shouldBe count
125+
nodejs10ContainerData.head.number shouldBe initialCount
126126
}
127127
}
128128
}

0 commit comments

Comments
 (0)