cargo : warning: unused imports: 
`ConstantDelayPolicy` and 
`ReconnectionConfig`
At line:1 char:1
+ cargo test > test_output.txt 2>&1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecifie 
   d: (warning: unused...nnectionConfig`  
  :String) [], RemoteException
    + FullyQualifiedErrorId : NativeComma 
   ndError
 
  --> src\client\client.rs:12:42
   |
12 | ...::{ReconnectionConfig, 
ConstantDelayPolicy};
   |       ^^^^^^^^^^^^^^^^^^  
^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` 
(part of `#[warn(unused)]`) on by default

warning: unused import: 
`std::time::Duration`
  --> src\client\client.rs:13:5
   |
13 | use std::time::Duration;
   |     ^^^^^^^^^^^^^^^^^^^

warning: unused import: `warn`
 --> 
src\communication\client_tokio.rs:8:24
  |
8 | use log::{error, info, warn};
  |                        ^^^^

warning: struct `TestEntity` is never 
constructed
 --> src\tests\mod.rs:4:12
  |
4 | pub struct TestEntity {
  |            ^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` (part of 
`#[warn(unused)]`) on by default

warning: struct `HandshakeResponse` is 
never constructed
  --> src\protocol\negotiate.rs:52:12
   |
52 | pub struct HandshakeResponse {
   |            ^^^^^^^^^^^^^^^^^

warning: struct `Close` is never 
constructed
  --> src\protocol\negotiate.rs:85:12
   |
85 | pub struct Close {
   |            ^^^^^

warning: struct `CancelInvocation` is 
never constructed
   --> src\protocol\invoke.rs:139:12
    |
139 | pub struct CancelInvocation {
    |            ^^^^^^^^^^^^^^^^

warning: struct `Close` is never 
constructed
 --> src\protocol\close.rs:9:12
  |
9 | pub struct Close {
  |            ^^^^^

warning: struct `ConstantDelayPolicy` is 
never constructed
  --> 
src\communication\reconnection.rs:20:12
   |
20 | pub struct ConstantDelayPolicy {
   |            ^^^^^^^^^^^^^^^^^^^

warning: associated function `new` is 
never used
  --> 
src\communication\reconnection.rs:26:12
   |
25 | impl ConstantDelayPolicy {
   | ------------------------ associated 
function in this implementation
26 |     pub fn new(delay: Duration, ma...
   |            ^^^

warning: struct `LinearBackoffPolicy` is 
never constructed
  --> 
src\communication\reconnection.rs:43:12
   |
43 | pub struct LinearBackoffPolicy {
   |            ^^^^^^^^^^^^^^^^^^^

warning: associated function `new` is 
never used
  --> 
src\communication\reconnection.rs:51:12
   |
50 | impl LinearBackoffPolicy {
   | ------------------------ associated 
function in this implementation
51 |     pub fn new(initial_delay: Dura...
   |            ^^^

warning: struct 
`ExponentialBackoffPolicy` is never 
constructed
  --> 
src\communication\reconnection.rs:82:12
   |
82 | pub struct ExponentialBackoffPolicy {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^

warning: associated function `new` is 
never used
  --> 
src\communication\reconnection.rs:90:12
   |
89 | impl ExponentialBackoffPolicy {
   | ----------------------------- 
associated function in this implementation
90 |     pub fn new(initial_delay: Dura...
   |            ^^^

warning: struct `HandshakeResponse` is 
never constructed
  --> src\protocol\negotiate.rs:52:12
   |
52 | pub struct HandshakeResponse {
   |            ^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` (part of 
`#[warn(unused)]`) on by default

warning: `signalr-client` (lib) generated 
14 warnings (run `cargo fix --lib -p 
signalr-client` to apply 3 suggestions)
warning: `signalr-client` (lib test) 
generated 13 warnings (12 duplicates)
    Finished `test` profile [unoptimized 
+ debuginfo] target(s) in 0.29s
     Running unittests src\lib.rs (target\
debug\deps\signalr_client-5d1bfce24cbcf573
.exe)

running 1 test
test tests::tests_tokio::test_service ... FAILED

failures:

---- tests::tests_tokio::test_service stdout ----
[DEBUG ureq::stream] connecting to localhost:5220 at [::1]:5220
[DEBUG ureq::stream] connecting to localhost:5220 at 127.0.0.1:5220

thread 'tests::tests_tokio::test_service' (6712) panicked at src\tests\tests_tokio.rs:12:14:
called `Result::unwrap()` on an `Err` value: "HTTP negotiation with endpoint http://localhost:5220/test/negotiate?negotiateVersion=1 failed The call failed Some(\"http://localhost:5220/test/negotiate?negotiateVersion=1: Connection Failed: Connect error: No connection could be made because the target machine actively refused it. (os error 10061)\")"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    tests::tests_tokio::test_service

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.05s

error: test failed, to rerun pass `--lib`
