update tests context
This commit is contained in:
@@ -2,7 +2,6 @@ package ofigi_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
@@ -112,7 +111,7 @@ func TestOpenFIGI_SecurityTypeByISIN(t *testing.T) {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
of := ofigi.NewOpenFIGI(tt.client, "")
|
||||
|
||||
got, gotErr := of.SecurityTypeByISIN(context.Background(), tt.isin)
|
||||
got, gotErr := of.SecurityTypeByISIN(t.Context(), tt.isin)
|
||||
if gotErr != nil {
|
||||
if !tt.wantErr {
|
||||
t.Errorf("want success but failed: %v", gotErr)
|
||||
|
||||
Reference in New Issue
Block a user