Skip to content

Commit

Permalink
tests(control_mode): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonGepting committed Feb 6, 2024
1 parent 157be01 commit 2fd89fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/control_mode/control_mode_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn control_mode_line() {
let output = "%session-changed $1 2".control_mode_line().unwrap();
assert_eq!(
Response::SessionChanged {
session_id: "1".to_string(),
session_id: "$1".to_string(),
name: "2".to_string()
},
output
Expand Down Expand Up @@ -266,7 +266,7 @@ fn next() {
use crate::control_mode::control_mode::{ControlModeOutput, OutputBlock, Response};
use std::io::{BufRead, BufReader};

let s = "%begin 1618081916 17688 1\n0: 3 windows (created Sat Apr 10 13:01:08 2021) (attached)\n%end 1618081916 17688 1\n%session-changed 0 $0 0";
let s = "%begin 1618081916 17688 1\n0: 3 windows (created Sat Apr 10 13:01:08 2021) (attached)\n%end 1618081916 17688 1\n%session-changed $0 0";
let s = BufReader::new(s.as_bytes());
let lines = s.lines();

Expand Down Expand Up @@ -295,7 +295,7 @@ fn for_loop() {
use crate::control_mode::control_mode::{ControlModeOutput, Response};
use std::io::{BufRead, BufReader};

let s = "%begin 1618081916 17688 0\n%end 1618081916 17688 0\n%session-changed 0 $0 0";
let s = "%begin 1618081916 17688 0\n%end 1618081916 17688 0\n%session-changed $0 0";
let s = BufReader::new(s.as_bytes());
let lines = s.lines();

Expand Down

0 comments on commit 2fd89fa

Please sign in to comment.