diff --git a/stan_test.go b/stan_test.go
index <HASH>..<HASH> 100644
--- a/stan_test.go
+++ b/stan_test.go
@@ -20,7 +20,6 @@ import (
 	natsd "github.com/nats-io/gnatsd/test"
 	"github.com/nats-io/go-nats"
 	"github.com/nats-io/go-nats-streaming/pb"
-	natstest "github.com/nats-io/go-nats/test"
 	"github.com/nats-io/nats-streaming-server/server"
 	"github.com/nats-io/nats-streaming-server/test"
 )
@@ -1459,7 +1458,12 @@ func TestNatsConn(t *testing.T) {
 	sc.Close()
 
 	// Make sure we can get the Conn we provide.
-	nc = natstest.NewDefaultConnection(t)
+	opts = nats.GetDefaultOptions()
+	nc, err = opts.Connect()
+	if err != nil {
+		t.Fatalf("Expected to connect correctly, got err %v", err)
+	}
+	defer nc.Close()
 	sc, err = Connect(clusterName, clientName, NatsConn(nc))
 	if err != nil {
 		t.Fatalf("Expected to connect correctly, got err %v", err)
removed dependency on go-nats/test (#<I>)

* removed dependency on natstest



* switched to `defer nc.Close()`