Enable random_channel_buffer_tests to run on Linux (#10863)
With this patch applied I can see the following line in the test output: test tests::random_channel_buffer_tests::test_random_channel_buffers has been running for over 60 seconds Without it I run in a failure with 'Invalid keystroke `cmk-,` Release Notes: - N/A --------- Co-authored-by: Max Linke <kain88-de@users.noreply.github.com> Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
parent
caa0d35b8b
commit
dad3cbb960
1 changed files with 7 additions and 1 deletions
|
@ -271,6 +271,12 @@ impl TestServer {
|
||||||
node_runtime: FakeNodeRuntime::new(),
|
node_runtime: FakeNodeRuntime::new(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let os_keymap = if cfg!(target_os = "linux") {
|
||||||
|
"keymaps/default-linux.json"
|
||||||
|
} else {
|
||||||
|
"keymaps/default-macos.json"
|
||||||
|
};
|
||||||
|
|
||||||
cx.update(|cx| {
|
cx.update(|cx| {
|
||||||
theme::init(theme::LoadThemes::JustBase, cx);
|
theme::init(theme::LoadThemes::JustBase, cx);
|
||||||
Project::init(&client, cx);
|
Project::init(&client, cx);
|
||||||
|
@ -285,7 +291,7 @@ impl TestServer {
|
||||||
file_finder::init(cx);
|
file_finder::init(cx);
|
||||||
menu::init();
|
menu::init();
|
||||||
remote_projects::init(client.clone(), cx);
|
remote_projects::init(client.clone(), cx);
|
||||||
settings::KeymapFile::load_asset("keymaps/default-macos.json", cx).unwrap();
|
settings::KeymapFile::load_asset(os_keymap, cx).unwrap();
|
||||||
});
|
});
|
||||||
|
|
||||||
client
|
client
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue