Improve readability for image manager tests

Use named variables so boolean arguments are more readable.
This commit is contained in:
mattjmcnaughton 2019-07-12 11:48:53 -04:00
parent 7bbc130f5e
commit 1d2c96ad5e
No known key found for this signature in database
GPG Key ID: BC530981A9A1CC9D

View File

@ -145,8 +145,9 @@ func TestParallelPuller(t *testing.T) {
cases := pullerTestCases()
useSerializedEnv := false
for i, c := range cases {
puller, fakeClock, fakeRuntime, container := pullerTestEnv(c, false)
puller, fakeClock, fakeRuntime, container := pullerTestEnv(c, useSerializedEnv)
for tick, expected := range c.expected {
fakeRuntime.CalledFunctions = nil
@ -170,8 +171,9 @@ func TestSerializedPuller(t *testing.T) {
cases := pullerTestCases()
useSerializedEnv := true
for i, c := range cases {
puller, fakeClock, fakeRuntime, container := pullerTestEnv(c, true)
puller, fakeClock, fakeRuntime, container := pullerTestEnv(c, useSerializedEnv)
for tick, expected := range c.expected {
fakeRuntime.CalledFunctions = nil