Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
kaneeldias committed Jun 29, 2022
1 parent e938124 commit c02bc49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ballerina/tests/02-execute-basic-test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ isolated function testInsertAndSelectTableWithGeneratedKeys() returns sql:Error?
string|int? insertedId = result.lastInsertId;
if insertedId is string {
sql:ParameterizedQuery query = `SELECT * from TestNumericTable where col_number = 31`;
stream<NumericRecord, sql:Error?> streamData = oracledbClient->query(query);
record {|NumericRecord value;|}? data = check streamData.next();
stream<record {}, sql:Error?> streamData = oracledbClient->query(query);
record {|record {} value;|}? data = check streamData.next();
check streamData.close();
test:assertNotExactEquals(data?.value, (), "Incorrect InsertId returned.");
} else {
Expand All @@ -151,8 +151,8 @@ isolated function testInsertWithAllNilAndSelectTableWithGeneratedKeys() returns
string|int? insertedId = result.lastInsertId;
if insertedId is string {
sql:ParameterizedQuery query = `SELECT * from TestNumericTable where id = 2`;
stream<NumericRecord, sql:Error?> streamData = oracledbClient->query(query);
record {|NumericRecord value;|}? data = check streamData.next();
stream<record {}, sql:Error?> streamData = oracledbClient->query(query);
record {|record {} value;|}? data = check streamData.next();
check streamData.close();
test:assertNotExactEquals(data?.value, (), "Incorrect InsertId returned.");
} else {
Expand Down

0 comments on commit c02bc49

Please sign in to comment.