Skip to content

Commit

Permalink
fix: adding minor test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Dec 11, 2024
1 parent db5884d commit 2170f58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (u *ClevertapBulkUploader) createCSVFile(inputDataFilePath string) (*Action
defer inputFile.Close()

scanner := bufio.NewScanner(inputFile)
scanner.Buffer(nil, 50000*1024) // Adjust the buffer size if necessary
scanner.Buffer(nil, 50000*1024) // maximum size of a single line that the scanner can read. Adjust the buffer size if necessary

for scanner.Scan() {
line := scanner.Text()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ func TestGetBulkApi(t *testing.T) {
assert.NotNil(t, endpoints)
assert.NotEmpty(t, endpoints.BulkApi)
assert.NotEmpty(t, endpoints.NotifyApi)
// TODO: Validate endpoints.BulkApi and endpoints.NotifyApi
assert.Equal(t, "https://in1.api.clevertap.com/get_custom_list_segment_url", endpoints.BulkApi)
assert.Equal(t, "https://in1.api.clevertap.com/upload_custom_list_segment_completed", endpoints.NotifyApi)
}

func TestConvertToConnectionConfig(t *testing.T) {
Expand Down

0 comments on commit 2170f58

Please sign in to comment.