@@ -28,7 +28,7 @@ func TestFetchTradablePairsFiltersNonTradingOptions(t *testing.T) {
2828 preLaunchInstrument := newOptionInstrumentInfo ("BTC14MAR26-85000-C" , "PreLaunch" )
2929
3030 var queries []url.Values
31- ex := newOptionsInstrumentInfoTestExchange (t , "BybitOptionsFetchTradablePairsTest" , map [string ][]optionInstrumentInfoResponse {
31+ ex := newInstrumentInfoTestExchange (t , "BybitOptionsFetchTradablePairsTest" , cOption , map [string ][]optionInstrumentInfoResponse {
3232 "BTC" : {tradingInstrument , settlingInstrument , preLaunchInstrument },
3333 }, & queries )
3434
@@ -65,7 +65,7 @@ func TestUpdateOrderExecutionLimitsFiltersNonTradingOptions(t *testing.T) {
6565 closedInstrument := newOptionInstrumentInfo ("BTC14MAR26-85000-C" , "Closed" )
6666
6767 var queries []url.Values
68- ex := newOptionsInstrumentInfoTestExchange (t , "BybitOptionsUpdateLimitsTest" , map [string ][]optionInstrumentInfoResponse {
68+ ex := newInstrumentInfoTestExchange (t , "BybitOptionsUpdateLimitsTest" , cOption , map [string ][]optionInstrumentInfoResponse {
6969 "BTC" : {tradingInstrument , settlingInstrument , closedInstrument },
7070 }, & queries )
7171
@@ -110,12 +110,6 @@ func TestUpdateOrderExecutionLimitsLeavesNonOptionsStatusHandlingUnchanged(t *te
110110 assert .Equal (t , "1000" , queries [0 ].Get ("limit" ), "UpdateOrderExecutionLimits should request the expected page size" )
111111}
112112
113- func newOptionsInstrumentInfoTestExchange (t * testing.T , name string , responses map [string ][]optionInstrumentInfoResponse , queries * []url.Values ) * Exchange {
114- t .Helper ()
115-
116- return newInstrumentInfoTestExchange (t , name , cOption , responses , queries )
117- }
118-
119113func newInstrumentInfoTestExchange (t * testing.T , name , category string , responses map [string ][]optionInstrumentInfoResponse , queries * []url.Values ) * Exchange {
120114 t .Helper ()
121115
0 commit comments