mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 02:45:42 +03:00
Fix flaky host volumes test
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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]'),
|
||||
|
||||
Reference in New Issue
Block a user