CI: improve test "cscli machines prune" (#2992)

This commit is contained in:
mmetc 2024-05-13 09:48:08 +02:00 committed by GitHub
parent 14dc26b128
commit 26b3410ef1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -94,7 +94,10 @@ teardown() {
@test "cscli machines prune" {
rune -0 cscli metrics
rune -0 cscli machines prune
# if the fixture has been created some time ago,
# the machines may be old enough to trigger a user prompt.
# make sure the prune duration is high enough.
rune -0 cscli machines prune --duration 1000000h
assert_output 'No machines to prune.'
rune -0 cscli machines list -o json