jhthorsen / mojo-irc

IRC Client for the Mojo IOLoop
14 stars 12 forks source link

add write_p and use promises instead of delays #31

Closed Grinnz closed 3 years ago

Grinnz commented 3 years ago

Currently causes t/ua-part-channel.t to fail for unknown reasons

> env MOJO_IRC_DEBUG=1 perl -Ilib t/ua-part-channel.t
ok 1 - channel name missing
ok 2 - channel name with whitespace
[127.0.0.1:37927] <<< NICK test______
[127.0.0.1:37927] <<< USER test986381 8 * :Mojo IRC
[127.0.0.1:37927] <<< JOIN #test123
[127.0.0.1:37927] >>> :hybrid8.local NOTICE AUTH :*** Looking up your hostname...
[127.0.0.1:37927] >>> :hybrid8.local NOTICE AUTH :*** Checking Ident
[127.0.0.1:37927] >>> :hybrid8.local NOTICE AUTH :*** Found your hostname
[127.0.0.1:37927] >>> :hybrid8.local NOTICE AUTH :*** No Ident response
not ok 3 - channel joined
#   Failed test 'channel joined'
#   at t/ua-part-channel.t line 26.
#          got: 'somethingweird'
#     expected: ''
[127.0.0.1:37927] <<< PART #foo
[127.0.0.1:37927] >>> :hades.arpa 442 test21362 #foo :You are not on that channel
ok 4 - need to join first
[127.0.0.1:37927] <<< PART #test123
[127.0.0.1:37927] >>> :test21362!~test96908@0::1 PART #test123
ok 5 - channel parted
1..5
[127.0.0.1:37927] : close
# Looks like you failed 1 test of 5.