From 3a8669cea4aa4b32fee3336cb9be4ec66d3dc2c2 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 16 Jan 2019 19:43:04 +0000 Subject: Build AES key after factory reset in tests The device::clear_new_sd_card_warning used to perform a factory reset without building an AES key. This led to errors in tests that assume that an AES key is present. --- tests/device.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/device.rs b/tests/device.rs index 7dea000..8efaace 100644 --- a/tests/device.rs +++ b/tests/device.rs @@ -462,6 +462,7 @@ fn get_production_info(device: Storage) { #[test_device] fn clear_new_sd_card_warning(device: Storage) { assert_eq!(Ok(()), device.factory_reset(ADMIN_PASSWORD)); + assert_eq!(Ok(()), device.build_aes_key(ADMIN_PASSWORD)); // We have to perform an SD card operation to reset the new_sd_card_found field assert_eq!(Ok(()), device.lock()); -- cgit v1.2.3