Test/main: don't rely on EOL RHEL 8.9 in tests

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2025-07-07 11:48:35 +02:00 committed by Michael Vogt
parent 8d0d7106c5
commit 57e8468390

View file

@ -45,8 +45,8 @@ func TestListImagesNoArguments(t *testing.T) {
assert.NoError(t, err) assert.NoError(t, err)
// we expect at least this canary // we expect at least this canary
assert.Contains(t, fakeStdout.String(), "rhel-10.0 type:qcow2 arch:x86_64\n") assert.Contains(t, fakeStdout.String(), "rhel-10.0 type:qcow2 arch:x86_64\n")
// output is sorted, i.e. 8.9 comes before 8.10 // output is sorted, i.e. 8.8 comes before 8.10
assert.Regexp(t, `(?ms)rhel-8.9.*rhel-8.10`, fakeStdout.String()) assert.Regexp(t, `(?ms)rhel-8.8.*rhel-8.10`, fakeStdout.String())
} }
} }