Skip to content

Commit

Permalink
Fix runtime api test
Browse files Browse the repository at this point in the history
  • Loading branch information
HindujaB committed Apr 5, 2024
1 parent 0153cb8 commit 43474b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,15 @@ public void testRecordNoStrandDefaultValue() {

@Test
public void testRuntimeManagementAPI() {
CompileResult strandResult = BCompileUtil.compile("test-src/runtime/api/runtime_mgt");
AtomicReference<Throwable> exceptionRef = new AtomicReference<>();
final Scheduler scheduler = new Scheduler(false);
Thread thread1 = new Thread(() -> {
BRunUtil.runOnSchedule(strandResult, "main", scheduler);
try {
CompileResult strandResult = BCompileUtil.compile("test-src/runtime/api/runtime_mgt");
BRunUtil.runOnSchedule(strandResult, "main", scheduler);
} catch (Throwable e) {
exceptionRef.set(e);
}
});
Thread thread2 = new Thread(() -> {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
org= "testorg"
name="runtime_mgt"
version= "1.0.0"

[build-options]
remoteManagement=true

0 comments on commit 43474b4

Please sign in to comment.