forked from gear-tech/gear
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_ping.yaml
55 lines (47 loc) · 1.08 KB
/
test_ping.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
title: Ping-pong
programs:
- id: 1
path: target/wasm32-unknown-unknown/release/demo_ping.opt.wasm
source:
kind: account
value: alice
- id: 2
path: target/wasm32-unknown-unknown/release/demo_ping_gas.opt.wasm
source:
kind: account
value: alice
fixtures:
- title: ping-pong
messages:
- destination: 1
payload:
kind: utf-8
value: PING
expected:
- log:
- destination: 1000001
payload:
kind: utf-8
value: PONG
- title: ping-pong wgas
messages:
- destination: 2
payload:
kind: utf-8
value: PING_REPLY_WITH_GAS
- destination: 2
payload:
kind: utf-8
value: PING_REPLY_COMMIT_WITH_GAS
expected:
- log:
- destination: 1000001
payload:
kind: utf-8
value: pong reply with gas message
gas_limit: 3001
- destination: 1000001
payload:
kind: utf-8
value: pong Part 1 pong Part 2
gas_limit: 3001