Fix flaky host volumes test

This commit is contained in:
Michael Lange
2020-02-11 19:51:09 -08:00
parent e5232b9ccd
commit 787dedcd5c
2 changed files with 2 additions and 2 deletions

View File

@@ -171,7 +171,7 @@ function makeHostVolumes() {
ReadOnly: faker.random.boolean(),
});
const volumes = provide(faker.random.number(5), generate);
const volumes = provide(faker.random.number({ min: 1, max: 5 }), generate);
return volumes.reduce((hash, volume) => {
hash[volume.Name] = volume;
return hash;

View File

@@ -77,7 +77,7 @@ export default create({
message: text('[data-test-client-event-message]'),
}),
hasHostVolumes: isPresent('[data-test-client-host-volumes'),
hasHostVolumes: isPresent('[data-test-client-host-volumes]'),
hostVolumes: collection('[data-test-client-host-volume]', {
name: text('[data-test-name]'),
path: text('[data-test-path]'),