FlushProjectsCache: Use standard name for scenario

Rename that value member to 'test', which is the name used everywhere
else so far for all such Gerrit main scenario members. That name is
basically used for the scenario class's own (main) scenario -or test.

The previous name here was a left-over that should have been renamed,
for the sake of preserving such consistency. (This change fixes that.)

Change-Id: I865edad76fe64e395752d3f810ad50417bcc0936
This commit is contained in:
Marco Miller
2020-07-15 17:33:29 -04:00
parent fc96b59029
commit 61fba84b1d

View File

@@ -26,7 +26,7 @@ class FlushProjectsCache extends CacheFlushSimulation {
override def relativeRuntimeWeight = 2
private val flushCache: ScenarioBuilder = scenario(unique)
private val test: ScenarioBuilder = scenario(unique)
.feed(data)
.exec(httpRequest)
@@ -44,7 +44,7 @@ class FlushProjectsCache extends CacheFlushSimulation {
nothingFor(stepWaitTime(getCacheEntriesAfterProject) seconds),
atOnceUsers(single)
),
flushCache.inject(
test.inject(
nothingFor(stepWaitTime(this) seconds),
atOnceUsers(single)
),