@@ -13,7 +13,7 @@ import (
13
13
const testDsn = "http://[email protected] /1337"
14
14
15
15
func setupHubTest () (* Hub , * Client , * Scope ) {
16
- client , _ := NewClient (ClientOptions {Dsn : testDsn })
16
+ client , _ := NewClient (ClientOptions {Dsn : testDsn , Transport : & TransportMock {} })
17
17
scope := NewScope ()
18
18
hub := NewHub (client , scope )
19
19
return hub , client , scope
@@ -95,7 +95,7 @@ func TestPopScopeCannotLeaveStackEmpty(t *testing.T) {
95
95
func TestBindClient (t * testing.T ) {
96
96
hub , client , _ := setupHubTest ()
97
97
hub .PushScope ()
98
- newClient , _ := NewClient (ClientOptions {Dsn : testDsn })
98
+ newClient , _ := NewClient (ClientOptions {Dsn : testDsn , Transport : & TransportMock {} })
99
99
hub .BindClient (newClient )
100
100
101
101
if (* hub .stack )[0 ].client == (* hub .stack )[1 ].client {
@@ -123,7 +123,7 @@ func TestWithScopeBindClient(t *testing.T) {
123
123
hub , client , _ := setupHubTest ()
124
124
125
125
hub .WithScope (func (scope * Scope ) {
126
- newClient , _ := NewClient (ClientOptions {Dsn : testDsn })
126
+ newClient , _ := NewClient (ClientOptions {Dsn : testDsn , Transport : & TransportMock {} })
127
127
hub .BindClient (newClient )
128
128
if hub .stackTop ().client != newClient {
129
129
t .Error ("should use newly bound client" )
0 commit comments