Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
heshanpadmasiri committed Oct 13, 2024
1 parent c69471e commit c312015
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import io.ballerina.runtime.internal.types.semtype.ListDefinition;
import org.testng.annotations.Test;

// These are temporary sanity checks until we have actual types using cell types are implemented
public class CoreTests {

@Test
Expand Down
2 changes: 1 addition & 1 deletion bvm/ballerina-runtime/src/test/resources/testng.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd" >

<suite name="ballerina-runtime-test-suite" time-out="120000000000000">
<suite name="ballerina-runtime-test-suite" time-out="120000">
<test name="ballerina-runtime-test">
<packages>
<package name="io.ballerina.runtime.test.*"/>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,13 @@ public void testConvertRecordToMapWithCyclicValueReferences() {
Object results = BRunUtil.invoke(negativeResult, "testConvertRecordToMapWithCyclicValueReferences");
Object error = results;
Assert.assertEquals(getType(error).getClass(), BErrorType.class);
Assert.assertEquals(
((BMap<String, BString>) ((BError) results).getDetails()).get(StringUtils.fromString("message"))
.toString(),
"'Manager' value has cyclic reference");
}

@Test(description = "Test converting record to json having cyclic reference.", enabled = false)
@Test(description = "Test converting record to json having cyclic reference.")
public void testConvertRecordToJsonWithCyclicValueReferences() {
Object results = BRunUtil.invoke(negativeResult, "testConvertRecordToJsonWithCyclicValueReferences");
Object error = results;
Assert.assertEquals(getType(error).getClass(), BErrorType.class);
Assert.assertEquals(
((BMap<String, BString>) ((BError) results).getDetails()).get(StringUtils.fromString("message"))
.toString(),
"'Manager' value has cyclic reference");
}

@Test(dataProvider = "testConversionFunctionList")
Expand Down

0 comments on commit c312015

Please sign in to comment.