memoryd: note answers name notes.md and the file that was not changed
This commit is contained in:
@@ -175,7 +175,7 @@ fn an_untrusted_session_writes_notes_not_identity() {
|
||||
));
|
||||
assert_eq!(
|
||||
answer,
|
||||
"saved as a note (untrusted): this session has read untrusted content"
|
||||
"not added to memory.md: this session has read untrusted content, so it was saved in notes.md as an untrusted note"
|
||||
);
|
||||
let memory = std::fs::read_to_string(r.dir.path().join("memory/memory.md")).unwrap();
|
||||
assert_eq!(memory, "");
|
||||
@@ -232,7 +232,7 @@ fn review_holds_identity_writes_but_not_notes() {
|
||||
r#"{"action":"note","text":"Not held."}"#,
|
||||
false,
|
||||
));
|
||||
assert_eq!(noted, "noted");
|
||||
assert_eq!(noted, "saved in notes.md");
|
||||
let (untrusted, _) = content(call(
|
||||
&r,
|
||||
"mm-b",
|
||||
@@ -242,7 +242,7 @@ fn review_holds_identity_writes_but_not_notes() {
|
||||
));
|
||||
assert_eq!(
|
||||
untrusted,
|
||||
"saved as a note (untrusted): this session has read untrusted content"
|
||||
"not added to memory.md: this session has read untrusted content, so it was saved in notes.md as an untrusted note"
|
||||
);
|
||||
let admin = |command, arg: &str| match ask(
|
||||
&r.config.admin_socket(),
|
||||
|
||||
Reference in New Issue
Block a user