@@ -27,6 +27,8 @@ func TestUserAgentHeader(t *testing.T) {
2727 var userAgent string
2828 client := finchgo .NewClient (
2929 option .WithAccessToken ("My Access Token" ),
30+ option .WithClientID ("4ab15e51-11ad-49f4-acae-f343b7794375" ),
31+ option .WithClientSecret ("My Client Secret" ),
3032 option .WithHTTPClient (& http.Client {
3133 Transport : & closureTransport {
3234 fn : func (req * http.Request ) (* http.Response , error ) {
@@ -48,6 +50,8 @@ func TestRetryAfter(t *testing.T) {
4850 retryCountHeaders := make ([]string , 0 )
4951 client := finchgo .NewClient (
5052 option .WithAccessToken ("My Access Token" ),
53+ option .WithClientID ("4ab15e51-11ad-49f4-acae-f343b7794375" ),
54+ option .WithClientSecret ("My Client Secret" ),
5155 option .WithHTTPClient (& http.Client {
5256 Transport : & closureTransport {
5357 fn : func (req * http.Request ) (* http.Response , error ) {
@@ -82,6 +86,8 @@ func TestDeleteRetryCountHeader(t *testing.T) {
8286 retryCountHeaders := make ([]string , 0 )
8387 client := finchgo .NewClient (
8488 option .WithAccessToken ("My Access Token" ),
89+ option .WithClientID ("4ab15e51-11ad-49f4-acae-f343b7794375" ),
90+ option .WithClientSecret ("My Client Secret" ),
8591 option .WithHTTPClient (& http.Client {
8692 Transport : & closureTransport {
8793 fn : func (req * http.Request ) (* http.Response , error ) {
@@ -112,6 +118,8 @@ func TestOverwriteRetryCountHeader(t *testing.T) {
112118 retryCountHeaders := make ([]string , 0 )
113119 client := finchgo .NewClient (
114120 option .WithAccessToken ("My Access Token" ),
121+ option .WithClientID ("4ab15e51-11ad-49f4-acae-f343b7794375" ),
122+ option .WithClientSecret ("My Client Secret" ),
115123 option .WithHTTPClient (& http.Client {
116124 Transport : & closureTransport {
117125 fn : func (req * http.Request ) (* http.Response , error ) {
@@ -142,6 +150,8 @@ func TestRetryAfterMs(t *testing.T) {
142150 attempts := 0
143151 client := finchgo .NewClient (
144152 option .WithAccessToken ("My Access Token" ),
153+ option .WithClientID ("4ab15e51-11ad-49f4-acae-f343b7794375" ),
154+ option .WithClientSecret ("My Client Secret" ),
145155 option .WithHTTPClient (& http.Client {
146156 Transport : & closureTransport {
147157 fn : func (req * http.Request ) (* http.Response , error ) {
@@ -168,6 +178,8 @@ func TestRetryAfterMs(t *testing.T) {
168178func TestContextCancel (t * testing.T ) {
169179 client := finchgo .NewClient (
170180 option .WithAccessToken ("My Access Token" ),
181+ option .WithClientID ("4ab15e51-11ad-49f4-acae-f343b7794375" ),
182+ option .WithClientSecret ("My Client Secret" ),
171183 option .WithHTTPClient (& http.Client {
172184 Transport : & closureTransport {
173185 fn : func (req * http.Request ) (* http.Response , error ) {
@@ -188,6 +200,8 @@ func TestContextCancel(t *testing.T) {
188200func TestContextCancelDelay (t * testing.T ) {
189201 client := finchgo .NewClient (
190202 option .WithAccessToken ("My Access Token" ),
203+ option .WithClientID ("4ab15e51-11ad-49f4-acae-f343b7794375" ),
204+ option .WithClientSecret ("My Client Secret" ),
191205 option .WithHTTPClient (& http.Client {
192206 Transport : & closureTransport {
193207 fn : func (req * http.Request ) (* http.Response , error ) {
@@ -216,6 +230,8 @@ func TestContextDeadline(t *testing.T) {
216230 go func () {
217231 client := finchgo .NewClient (
218232 option .WithAccessToken ("My Access Token" ),
233+ option .WithClientID ("4ab15e51-11ad-49f4-acae-f343b7794375" ),
234+ option .WithClientSecret ("My Client Secret" ),
219235 option .WithHTTPClient (& http.Client {
220236 Transport : & closureTransport {
221237 fn : func (req * http.Request ) (* http.Response , error ) {
0 commit comments