Skip to content

Commit

Permalink
Update resource paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sahanHe committed Feb 20, 2024
1 parent 22342ff commit 9428290
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ballerina/modules/bulk/tests/bulk_csv_insert.bal
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function insertCsvFromFile() {
log:printInfo("baseClient -> insertCsvFromFile");
string batchId = "";

string csvContactsFilePath = "ballerina/modules/bulk/tests/resources/contacts1.csv";
string csvContactsFilePath = "modules/bulk/tests/resources/contacts1.csv";

//create job
error|BulkJob insertJob = baseClient->createJob("insert", "Contact", "CSV");
Expand Down Expand Up @@ -323,7 +323,7 @@ function insertCsvStringArrayFromFile() returns error? {
log:printInfo("baseClient -> insertCsvStringArrayFromFile");
string batchId = "";

string csvContactsFilePath = "ballerina/modules/bulk/tests/resources/contacts2.csv";
string csvContactsFilePath = "modules/bulk/tests/resources/contacts2.csv";

//create job
error|BulkJob insertJob = baseClient->createJob("insert", "Contact", "CSV");
Expand Down Expand Up @@ -464,7 +464,7 @@ function insertCsvStreamFromFile() returns error? {
log:printInfo("baseClient -> insertCsvStreamFromFile");
string batchId = "";

string csvContactsFilePath = "ballerina/modules/bulk/tests/resources/contacts3.csv";
string csvContactsFilePath = "modules/bulk/tests/resources/contacts3.csv";

//create job
error|BulkJob insertJob = baseClient->createJob("insert", "Contact", "CSV");
Expand Down
6 changes: 3 additions & 3 deletions ballerina/tests/bulk_csv_insert.bal
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function insertCsv() returns error? {
}
function insertCsvFromFile() returns error? {
log:printInfo("baseClient -> insertCsvFromFile");
string csvContactsFilePath = "ballerina/tests/resources/contacts1.csv";
string csvContactsFilePath = "tests/resources/contacts1.csv";

//create job
BulkCreatePayload payload = {
Expand Down Expand Up @@ -158,7 +158,7 @@ function insertCsvFromFile() returns error? {
function insertCsvStringArrayFromFile() returns error? {
log:printInfo("baseClient -> insertCsvStringArrayFromFile");

string csvContactsFilePath = "ballerina/tests/resources/contacts2.csv";
string csvContactsFilePath = "tests/resources/contacts2.csv";

//create job
BulkCreatePayload payload = {
Expand Down Expand Up @@ -226,7 +226,7 @@ function insertCsvStringArrayFromFile() returns error? {
function insertCsvStreamFromFile() returns error? {
log:printInfo("baseClient -> insertCsvStreamFromFile");

string csvContactsFilePath = "ballerina/tests/resources/contacts3.csv";
string csvContactsFilePath = "tests/resources/contacts3.csv";

stream<string[], io:Error?> csvStream = check io:fileReadCsvAsStream(csvContactsFilePath);
//create job
Expand Down

0 comments on commit 9428290

Please sign in to comment.