update tests context

This commit is contained in:
2026-08-02 15:49:22 +01:00
parent a7d5277c7c
commit 6fcc21adfe
3 changed files with 6 additions and 9 deletions
+1 -2
View File
@@ -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)