fn round_robin_next_single()

in elasticsearch/src/http/transport.rs [1251:1260]


    fn round_robin_next_single() {
        let expected = Url::parse("http://a:9200/").unwrap();
        let connections = MultiNodeConnectionPool::round_robin(vec![expected.clone()], None);

        for _ in 0..10 {
            let actual = connections.next();

            assert_eq!(expected.as_str(), actual.url.as_str());
        }
    }