Skip to content

Commit bd576c2

Browse files
BillCarsonFrpoljar
authored andcommitted
fixup: test, redact snapshot value that is dependent of feature flag
1 parent 35023ce commit bd576c2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

crates/matrix-sdk-crypto/src/machine/tests/send_encrypted_to_device.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ async fn test_processed_to_device_variants() {
225225
r#"["org.matrix.msc4147.device_keys"].device_id"# => "[ABCDEFGH]",
226226
r#"["org.matrix.msc4147.device_keys"].keys"# => "++REDACTED++",
227227
r#"["org.matrix.msc4147.device_keys"].signatures"# => "++REDACTED++",
228+
// Redacted because depending on feature flags
229+
r#"["org.matrix.msc4147.device_keys"].algorithms"# => "++REDACTED++",
228230
".recipient_keys.ed25519" => "[recipient_sender_key]",
229231
}
230232
);

crates/matrix-sdk-crypto/src/machine/tests/snapshots/processed_to_device_variants.snap

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ expression: "serde_json::from_str::<Value>(processed_event.to_raw().json().get()
1717
"ed25519": "[sender_ed25519_key]"
1818
},
1919
"org.matrix.msc4147.device_keys": {
20-
"algorithms": [
21-
"m.olm.v1.curve25519-aes-sha2",
22-
"m.megolm.v1.aes-sha2"
23-
],
20+
"algorithms": "++REDACTED++",
2421
"device_id": "[ABCDEFGH]",
2522
"keys": "++REDACTED++",
2623
"signatures": "++REDACTED++",

0 commit comments

Comments
 (0)