Skip to content

Commit

Permalink
polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sanzmauro committed Oct 25, 2024
1 parent 161461a commit 5ca3be8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion splitio/proxy/service/api/large_segment_http_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/splitio/split-synchronizer/v5/splitio/proxy/service/dtos"
)

var MEM_VERSION_10 = "1.0"
var MEM_VERSION_10 = "1.0" // support for csv format with one column

const (
// Unknown format
Expand Down
18 changes: 6 additions & 12 deletions splitio/proxy/service/api/large_segment_http_fetcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ func TestFetchCsvMultipleColumns(t *testing.T) {
"api-key",
"1.0",
cmnConf.AdvancedConfig{
EventsURL: ts.URL,
SdkURL: ts.URL,
SdkURL: ts.URL,
},
logger,
cmnDTOs.Metadata{},
Expand Down Expand Up @@ -88,8 +87,7 @@ func TestFetchCsvFormat(t *testing.T) {
"api-key",
"1.0",
cmnConf.AdvancedConfig{
EventsURL: ts.URL,
SdkURL: ts.URL,
SdkURL: ts.URL,
},
logger,
cmnDTOs.Metadata{},
Expand Down Expand Up @@ -134,8 +132,7 @@ func TestFetchCsvFormatWithOtherVersion(t *testing.T) {
"api-key",
"1.0",
cmnConf.AdvancedConfig{
EventsURL: ts.URL,
SdkURL: ts.URL,
SdkURL: ts.URL,
},
logger,
cmnDTOs.Metadata{},
Expand Down Expand Up @@ -177,8 +174,7 @@ func TestFetchUnknownFormat(t *testing.T) {
"api-key",
"1.0",
cmnConf.AdvancedConfig{
EventsURL: ts.URL,
SdkURL: ts.URL,
SdkURL: ts.URL,
},
logger,
cmnDTOs.Metadata{},
Expand All @@ -202,8 +198,7 @@ func TestFetchAPIError(t *testing.T) {
"api-key",
"1.0",
cmnConf.AdvancedConfig{
EventsURL: ts.URL,
SdkURL: ts.URL,
SdkURL: ts.URL,
},
logger,
cmnDTOs.Metadata{},
Expand Down Expand Up @@ -243,8 +238,7 @@ func TestFetchDownloadServerError(t *testing.T) {
"api-key",
"1.0",
cmnConf.AdvancedConfig{
EventsURL: ts.URL,
SdkURL: ts.URL,
SdkURL: ts.URL,
},
logger,
cmnDTOs.Metadata{},
Expand Down

0 comments on commit 5ca3be8

Please sign in to comment.