mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-04-25 09:52:12 +00:00
Fix failing tests in AquaVM (#207)
This commit is contained in:
parent
1f5fa892e3
commit
208067eecf
5
.github/workflows/snapshot.yml
vendored
5
.github/workflows/snapshot.yml
vendored
@ -9,6 +9,10 @@ on:
|
|||||||
marine-js-version:
|
marine-js-version:
|
||||||
description: "@fluencelabs/marine-js version"
|
description: "@fluencelabs/marine-js version"
|
||||||
type: string
|
type: string
|
||||||
|
ref:
|
||||||
|
description: "git ref to checkout to"
|
||||||
|
type: string
|
||||||
|
default: "master"
|
||||||
outputs:
|
outputs:
|
||||||
fluence-js-version:
|
fluence-js-version:
|
||||||
description: "@fluencelabs/fluence version"
|
description: "@fluencelabs/fluence version"
|
||||||
@ -35,6 +39,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: fluencelabs/fluence-js
|
repository: fluencelabs/fluence-js
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v2.2.4
|
- uses: pnpm/action-setup@v2.2.4
|
||||||
with:
|
with:
|
||||||
|
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@ -13,6 +13,10 @@ on:
|
|||||||
marine-js-version:
|
marine-js-version:
|
||||||
description: "@fluencelabs/marine-js version"
|
description: "@fluencelabs/marine-js version"
|
||||||
type: string
|
type: string
|
||||||
|
ref:
|
||||||
|
description: "git ref to checkout to"
|
||||||
|
type: string
|
||||||
|
default: "master"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUST_PEER_IMAGE: "${{ inputs.rust-peer-image }}"
|
RUST_PEER_IMAGE: "${{ inputs.rust-peer-image }}"
|
||||||
@ -59,6 +63,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: fluencelabs/fluence-js
|
repository: fluencelabs/fluence-js
|
||||||
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
- name: Pull rust-peer image
|
- name: Pull rust-peer image
|
||||||
run: docker pull $RUST_PEER_IMAGE
|
run: docker pull $RUST_PEER_IMAGE
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@fluencelabs/fluence",
|
"name": "@fluencelabs/fluence",
|
||||||
"version": "0.27.1",
|
"version": "0.27.2",
|
||||||
"description": "TypeScript implementation of Fluence Peer",
|
"description": "TypeScript implementation of Fluence Peer",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"typings": "./dist/index.d.ts",
|
"typings": "./dist/index.d.ts",
|
||||||
|
@ -85,7 +85,10 @@ describe('Avm spec', () => {
|
|||||||
(call %init_peer_id% ("peer" "timeout") [1000 arg] $result)
|
(call %init_peer_id% ("peer" "timeout") [1000 arg] $result)
|
||||||
(call %init_peer_id% ("op" "identity") ["fast_result"] $result)
|
(call %init_peer_id% ("op" "identity") ["fast_result"] $result)
|
||||||
)
|
)
|
||||||
(call %init_peer_id% ("return" "return") [$result.$[0]])
|
(seq
|
||||||
|
(canon %init_peer_id% $result #result)
|
||||||
|
(call %init_peer_id% ("return" "return") [#result.$[0]])
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
`;
|
`;
|
||||||
@ -121,13 +124,19 @@ describe('Avm spec', () => {
|
|||||||
(call "invalid_peer" ("op" "identity") ["never"] $ok_or_err)
|
(call "invalid_peer" ("op" "identity") ["never"] $ok_or_err)
|
||||||
)
|
)
|
||||||
(xor
|
(xor
|
||||||
(match $ok_or_err.$[0] "timeout_msg"
|
(seq
|
||||||
|
(canon %init_peer_id% $ok_or_err #ok_or_err)
|
||||||
|
(match #ok_or_err.$[0] "timeout_msg"
|
||||||
(ap "failed_with_timeout" $result)
|
(ap "failed_with_timeout" $result)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
(ap "impossible happened" $result)
|
(ap "impossible happened" $result)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(call %init_peer_id% ("return" "return") [$result.$[0]])
|
(seq
|
||||||
|
(canon %init_peer_id% $result #result)
|
||||||
|
(call %init_peer_id% ("return" "return") [#result.$[0]])
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user