Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/vt_pty_terminal_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ assert!(status.success());
Milestones are encoded as unique window titles:

```text
pty-terminal-test:<32-hex-random-id>:<name-base64url>
vt-pty-terminal-test:<32-hex-random-id>:<name-base64url>
```

`Reader::expect_milestone` works like this:
Expand Down
6 changes: 3 additions & 3 deletions crates/vt_pty_terminal_test_client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use base64::{Engine as _, engine::general_purpose::URL_SAFE_NO_PAD};

const MILESTONE_TITLE_MARKER: &str = "pty-terminal-test:";
const MILESTONE_TITLE_MARKER: &str = "vt-pty-terminal-test:";

#[cfg(any(feature = "testing", test))]
fn encode_milestone_title(name: &str) -> String {
Expand Down Expand Up @@ -99,9 +99,9 @@ mod tests {
#[test]
fn ignores_normal_and_malformed_titles() {
assert!(decode_milestone_title(b"normal title").is_none());
assert!(decode_milestone_title(b"pty-terminal-test:not-hex:cmVhZHk").is_none());
assert!(decode_milestone_title(b"vt-pty-terminal-test:not-hex:cmVhZHk").is_none());
assert!(
decode_milestone_title(b"pty-terminal-test:00000000000000000000000000000000:*")
decode_milestone_title(b"vt-pty-terminal-test:00000000000000000000000000000000:*")
.is_none()
);
}
Expand Down
2 changes: 1 addition & 1 deletion crates/vt_socket_ipc/src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub struct Server {

impl Server {
pub fn bind() -> io::Result<Self> {
let dir = tempfile::Builder::new().prefix("socket_ipc_").tempdir()?;
let dir = tempfile::Builder::new().prefix("vt_socket_ipc_").tempdir()?;
let root = AbsolutePath::new(dir.path())
.expect("temp directories are absolute")
.to_absolute_path_buf();
Expand Down
2 changes: 1 addition & 1 deletion crates/vt_socket_ipc/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Server {
clippy::disallowed_macros,
reason = "the generated pipe name exceeds Str inline capacity"
)]
let name = OsString::from(format!(r"\\.\pipe\socket_ipc_{}", uuid::Uuid::new_v4()));
let name = OsString::from(format!(r"\\.\pipe\vt_socket_ipc_{}", uuid::Uuid::new_v4()));
let pending = ServerOptions::new().first_pipe_instance(true).create(&name)?;
Ok(Self { name, pending })
}
Expand Down
Loading