Skip to content

Commit 7ed5654

Browse files
committed
some more of iequidoo's suggestions
1 parent d2ce0ce commit 7ed5654

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/statistics/statistics_tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ async fn test_statistics_one_contact() -> Result<()> {
6060
let r2: serde_json::Value = serde_json::from_str(&stats)?;
6161

6262
assert_eq!(
63-
r.get("key_created").unwrap(),
64-
r2.get("key_created").unwrap()
63+
r.get("key_create_timestamps").unwrap(),
64+
r2.get("key_create_timestamps").unwrap()
6565
);
6666
assert_eq!(
6767
r.get("statistics_id").unwrap(),
@@ -500,9 +500,9 @@ async fn test_statistics_key_creation_timestamp() -> Result<()> {
500500

501501
let r = get_statistics(alice).await?;
502502
let r: serde_json::Value = serde_json::from_str(&r)?;
503-
let key_created = r.get("key_created").unwrap().as_array().unwrap();
503+
let key_create_timestamps = r.get("key_create_timestamps").unwrap().as_array().unwrap();
504504
assert_eq!(
505-
key_created,
505+
key_create_timestamps,
506506
&vec![Value::Number(
507507
Number::from_u128(ALICE_KEY_CREATION_TIME).unwrap()
508508
)]

0 commit comments

Comments
 (0)