     # back...
     opts = %{ port: TestHelper.auth_port}
     {:error, _why} = Client.start opts
-    
+
     # We should fail if we pass invalid credentials, make sure...
     opts = %{ port: TestHelper.auth_port,
               auth: %{ "user" => "oops", "pass" => "oops22"}}

    :ok = Client.unsub(con, ref1)
    :ok = Client.unsub(con, ref2)
    {:error, _} = Client.unsub(con, ref2)
    
    :ok = Client.pub(con, "subject", "hello world")
    :ok = Client.pub(con, "subject", "return", "hello return world")


  use ExUnit.Case, async: false
  alias Nats.Client

  @tag requires_gnatsd: true, capture_log: true
  test "Open a default client" do
    subject = "FOO-bar"

    {:error, _rest} = Client.start(%{host: ""})

    {:error, _rest} = Client.start(%{timeout: 0})

    {:ok, con } = Client.start_link
    {:ok, ref1} = Client.sub(con, self(), subject)

