summaryrefslogtreecommitdiffstats
path: root/zellij-server/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-05-15 16:05:43 +0200
committerAram Drevekenin <aram@poor.dev>2023-05-15 16:05:43 +0200
commit8f9194c58f09e9b3c0865cf58d8ef9d94ae2227f (patch)
treef041689bbe4e3015000a94341efa61f559da290a /zellij-server/src
parentce091ccb8e112c7a3e3f722daaca2ddf23e190a4 (diff)
debug ci
Diffstat (limited to 'zellij-server/src')
-rw-r--r--zellij-server/src/plugins/unit/plugin_tests.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/zellij-server/src/plugins/unit/plugin_tests.rs b/zellij-server/src/plugins/unit/plugin_tests.rs
index 108a996a6..e6d1ffbb6 100644
--- a/zellij-server/src/plugins/unit/plugin_tests.rs
+++ b/zellij-server/src/plugins/unit/plugin_tests.rs
@@ -132,7 +132,9 @@ pub fn load_new_plugin_from_hd() {
// message (this is what the fixture plugin does)
// we then listen on our mock screen receiver to make sure we got a PluginBytes instruction
// that contains said render, and assert against it
+ eprintln!("load_new_plugin_from_hd debug 1");
let (plugin_thread_sender, screen_receiver, mut teardown) = create_plugin_thread();
+ eprintln!("load_new_plugin_from_hd debug 2");
let plugin_should_float = Some(false);
let plugin_title = Some("test_plugin".to_owned());
let run_plugin = RunPlugin {
@@ -152,8 +154,10 @@ pub fn load_new_plugin_from_hd() {
screen_receiver,
2
);
+ eprintln!("load_new_plugin_from_hd debug 3");
let _ = plugin_thread_sender.send(PluginInstruction::AddClient(client_id));
+ eprintln!("load_new_plugin_from_hd debug 4");
let _ = plugin_thread_sender.send(PluginInstruction::Load(
plugin_should_float,
plugin_title,
@@ -162,13 +166,17 @@ pub fn load_new_plugin_from_hd() {
client_id,
size,
));
+ eprintln!("load_new_plugin_from_hd debug 5");
let _ = plugin_thread_sender.send(PluginInstruction::Update(vec![(
None,
Some(client_id),
Event::InputReceived,
)])); // will be cached and sent to the plugin once it's loaded
+ eprintln!("load_new_plugin_from_hd debug 6");
screen_thread.join().unwrap(); // this might take a while if the cache is cold
+ eprintln!("load_new_plugin_from_hd debug 7");
teardown();
+ eprintln!("load_new_plugin_from_hd debug 8");
let plugin_bytes_event = received_screen_instructions
.lock()
.unwrap()
@@ -184,7 +192,9 @@ pub fn load_new_plugin_from_hd() {
}
None
});
+ eprintln!("load_new_plugin_from_hd debug 9");
assert_snapshot!(format!("{:#?}", plugin_bytes_event));
+ eprintln!("load_new_plugin_from_hd debug 10");
}
#[test]