diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-03-13 10:34:56 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-03-13 10:34:56 +0100 |
commit | 310b4dd2a03e87d2875c2d231cd607b118a14137 (patch) | |
tree | c94e28b8c5107a33f5a08198a3701fd3c0eecd5d | |
parent | 55f16550642588675663401ebeb694f1798c2206 (diff) | |
download | weechat-310b4dd2a03e87d2875c2d231cd607b118a14137.zip |
tests: close xfer buffer after receiving some files
-rw-r--r-- | tests/unit/plugins/irc/test-irc-protocol.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp index ef269e2d6..a1a5ac5c4 100644 --- a/tests/unit/plugins/irc/test-irc-protocol.cpp +++ b/tests/unit/plugins/irc/test-irc-protocol.cpp @@ -32,6 +32,7 @@ extern "C" #include "src/core/wee-hashtable.h" #include "src/core/wee-hook.h" #include "src/core/wee-string.h" +#include "src/gui/gui-buffer.h" #include "src/gui/gui-color.h" #include "src/plugins/plugin.h" #include "src/plugins/irc/irc-ctcp.h" @@ -42,6 +43,7 @@ extern "C" #include "src/plugins/irc/irc-server.h" #include "src/plugins/typing/typing-config.h" #include "src/plugins/typing/typing-status.h" +#include "src/plugins/xfer/xfer-buffer.h" extern int irc_protocol_is_numeric_command (const char *str); extern int irc_protocol_log_level_for_command (const char *command); @@ -1755,6 +1757,10 @@ TEST(IrcProtocolWithServer, privmsg) CHECK_CORE("xfer: incoming file from bob (0.0.0.1, irc." IRC_FAKE_SERVER "), name: file.txt, 3 bytes (protocol: dcc)"); CHECK_SENT(NULL); + + /* close xfer buffer */ + if (xfer_buffer) + gui_buffer_close (xfer_buffer); } /* |