mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
Fix tests by re-instating paths in the new format
This commit is contained in:
parent
5c03b6a610
commit
6f173c64b3
1 changed files with 5 additions and 5 deletions
|
@ -53,14 +53,14 @@ fn test_update_channels(cx: &mut AppContext) {
|
||||||
name: "x".to_string(),
|
name: "x".to_string(),
|
||||||
visibility: proto::ChannelVisibility::Members as i32,
|
visibility: proto::ChannelVisibility::Members as i32,
|
||||||
role: proto::ChannelRole::Admin.into(),
|
role: proto::ChannelRole::Admin.into(),
|
||||||
parent_path: Vec::new(),
|
parent_path: vec![1],
|
||||||
},
|
},
|
||||||
proto::Channel {
|
proto::Channel {
|
||||||
id: 4,
|
id: 4,
|
||||||
name: "y".to_string(),
|
name: "y".to_string(),
|
||||||
visibility: proto::ChannelVisibility::Members as i32,
|
visibility: proto::ChannelVisibility::Members as i32,
|
||||||
role: proto::ChannelRole::Member.into(),
|
role: proto::ChannelRole::Member.into(),
|
||||||
parent_path: Vec::new(),
|
parent_path: vec![2],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
@ -92,21 +92,21 @@ fn test_dangling_channel_paths(cx: &mut AppContext) {
|
||||||
name: "a".to_string(),
|
name: "a".to_string(),
|
||||||
visibility: proto::ChannelVisibility::Members as i32,
|
visibility: proto::ChannelVisibility::Members as i32,
|
||||||
role: proto::ChannelRole::Admin.into(),
|
role: proto::ChannelRole::Admin.into(),
|
||||||
parent_path: Vec::new(),
|
parent_path: vec![],
|
||||||
},
|
},
|
||||||
proto::Channel {
|
proto::Channel {
|
||||||
id: 1,
|
id: 1,
|
||||||
name: "b".to_string(),
|
name: "b".to_string(),
|
||||||
visibility: proto::ChannelVisibility::Members as i32,
|
visibility: proto::ChannelVisibility::Members as i32,
|
||||||
role: proto::ChannelRole::Admin.into(),
|
role: proto::ChannelRole::Admin.into(),
|
||||||
parent_path: Vec::new(),
|
parent_path: vec![0],
|
||||||
},
|
},
|
||||||
proto::Channel {
|
proto::Channel {
|
||||||
id: 2,
|
id: 2,
|
||||||
name: "c".to_string(),
|
name: "c".to_string(),
|
||||||
visibility: proto::ChannelVisibility::Members as i32,
|
visibility: proto::ChannelVisibility::Members as i32,
|
||||||
role: proto::ChannelRole::Admin.into(),
|
role: proto::ChannelRole::Admin.into(),
|
||||||
parent_path: Vec::new(),
|
parent_path: vec![0, 1],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|
Loading…
Reference in a new issue