Skip to content

Commit dca23d5

Browse files
committed
test: keep backup-disabled snapshot non-empty
1 parent 4b2fff5 commit dca23d5

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/session/tests.rs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,25 @@ fn save_snapshot_skips_backup_when_disabled() {
673673
let session_path = options.session_file_path();
674674
fs::write(&session_path, b"old-session").expect("write old session");
675675

676+
let mut frame = Frame::new();
677+
frame.add_shape(Shape::Rect {
678+
x: 0,
679+
y: 0,
680+
w: 5,
681+
h: 5,
682+
fill: false,
683+
color: Color {
684+
r: 0.0,
685+
g: 0.0,
686+
b: 0.0,
687+
a: 1.0,
688+
},
689+
thick: 1.0,
690+
});
691+
676692
let snapshot = SessionSnapshot {
677693
active_mode: BoardMode::Transparent,
678-
transparent: Some(Frame::new()),
694+
transparent: Some(frame),
679695
whiteboard: None,
680696
blackboard: None,
681697
tool_state: None,

0 commit comments

Comments
 (0)