Skip to content

Commit

Permalink
Merge branch 'main' into feat/force-header-LNG-308
Browse files Browse the repository at this point in the history
  • Loading branch information
InversionSpaces authored Jan 16, 2024
2 parents bf3496c + 34e274d commit e442b59
Showing 1 changed file with 11 additions and 23 deletions.
34 changes: 11 additions & 23 deletions integration-tests/src/__test__/examples.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ import {
multipleAbilityWithClosureCall,
returnSrvAsAbilityCall,
} from "../examples/abilityCall.js";
import {
bugLNG314Call,
} from "../examples/abilityClosureCall.js";
import { bugLNG314Call } from "../examples/abilityClosureCall.js";
import {
nilLengthCall,
nilLiteralCall,
Expand Down Expand Up @@ -123,7 +121,7 @@ import { lng193BugCall } from "../examples/closureReturnRename.js";
import {
closuresCall,
multipleClosuresLNG262BugCall,
lng317BugCall
lng317BugCall,
} from "../examples/closures.js";
import { closureArrowCaptureCall } from "../examples/closureArrowCapture.js";
import {
Expand Down Expand Up @@ -185,22 +183,12 @@ import log from "loglevel";
// log.setDefaultLevel("debug")

async function start() {
console.log("CONNECTING TO FIRST:");
Fluence.onConnectionStateChange((s) => {
console.log(s);
});
await Fluence.connect(relay1, {});
const cl = await Fluence.getClient();
peer1 = cl;
selfPeerId = cl.getPeerId();
console.log("CONNECTED");

peer2 = await createClient(relay2, {});
console.log("CONNECTING TO SECOND:");
peer2.onConnectionStateChange((s) => {
console.log(s);
});
console.log("CONNECTED");
peer1 = Fluence.getClient();
selfPeerId = peer1.getPeerId();

peer2 = await createClient(relay2);
}

async function stop() {
Expand Down Expand Up @@ -671,9 +659,9 @@ describe("Testing examples", () => {
});

it("abilitiesClosure.aqua bug LNG-314", async () => {
let result = await bugLNG314Call();
expect(result).toEqual("strstrstr");
});
let result = await bugLNG314Call();
expect(result).toEqual("strstrstr");
});

it("functors.aqua LNG-119 bug", async () => {
let result = await bugLng119Call();
Expand Down Expand Up @@ -1114,8 +1102,8 @@ describe("Testing examples", () => {
});

it("closures.aqua bug LNG-317", async () => {
let result = await lng317BugCall();
expect(result).toEqual(["empty", "identity"]);
let result = await lng317BugCall();
expect(result).toEqual(["empty", "identity"]);
});

it("closureArrowCapture.aqua", async () => {
Expand Down

0 comments on commit e442b59

Please sign in to comment.