bilelmoussaoui / oo7

James Bond went on a new mission as a Secret Service provider
https://bilelmoussaoui.github.io/oo7/oo7/
MIT License
63 stars 12 forks source link

test dbus::collection::tests::create_encrypted_item fails #29

Closed sophie-h closed 1 year ago

sophie-h commented 1 year ago

This test locally always fails with

---- dbus::collection::tests::create_encrypted_item stdout ----
thread 'dbus::collection::tests::create_encrypted_item' panicked at 'assertion failed: `(left == right)`
  left: `61`,
 right: `63`', src/dbus/collection.rs:265:9

Does that mean anything?

bilelmoussaoui commented 1 year ago

The test passes correctly here

running 16 tests
test dbus::api::properties::tests::signature ... ok
test dbus::api::secret::tests::signature ... ok
test helpers::tests::test_cgroup_v2_is_snap ... ok
test crypto::test::test_encrypt ... ok
test dbus::api::properties::tests::serialize_label ... ok
test dbus::api::properties::tests::serialize_label_with_attributes ... ok
test portal::tests::repeated_write ... ok
test dbus::collection::tests::create_plain_item ... ok
test dbus::collection::tests::create_encrypted_item ... ok
test key::tests::private_public_pair ... ok
test portal::api::tests::keyfile_add_remove ... ok
test portal::tests::delete ... ok
test portal::tests::write_with_weak_key ... ok
test portal::api::tests::keyfile_dump_load ... ok
test portal::tests::write_with_strong_key ... ok
test dbus::service::tests::create_collection ... ok

test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 7.66s

   Doc-tests oo7

running 6 tests
test src/lib.rs - (line 66) ... ignored
test src/lib.rs - (line 96) ... ignored
test src/dbus/service.rs - dbus::service::Service (line 15) - compile ... ok
test src/portal/mod.rs - portal (line 3) - compile ... ok
test src/lib.rs - (line 31) - compile ... ok
A6GibKm commented 1 year ago

Probably there is a lingering element in the local keyring which is not being clear as part of the tests?

bilelmoussaoui commented 1 year ago

I have been trying to reproduce this with no luck, I am going to go ahead and close it

bilelmoussaoui commented 1 year ago

Especially that the CI is exercising those tests on every run