Commit b74f3a3c authored by Ian Jackson's avatar Ian Jackson
Browse files

ErrorKind::NotImplemented: fix two tests

parent 30ebb135
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -445,7 +445,7 @@ mod test {
    fn socks5_init_nothing_works() {
        let mut h = SocksHandshake::new();
        let a = h.handshake(&hex!("05 02 9988")[..]);
        assert!(matches!(a, Ok(Err(Error::NoSupport))));
        assert!(matches!(a, Ok(Err(Error::NotImplemented))));
    }

    #[test]
+1 −1
Original line number Diff line number Diff line
@@ -298,7 +298,7 @@ mod test {
            1024,
            SocksAuth::NoAuth,
        );
        assert!(matches!(e, Err(Error::NoSupport)));
        assert!(matches!(e, Err(Error::NotImplemented)));

        let e = SocksRequest::new(
            SocksVersion::V4,