forked from gear-tech/gear
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_wait.yaml
67 lines (53 loc) · 1.38 KB
/
test_wait.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
56
57
58
59
60
61
62
63
64
65
66
67
title: Wait test
programs:
- id: 1
path: target/wasm32-unknown-unknown/release/demo_wait.opt.wasm
fixtures:
- title: wait
messages:
- destination: 1
payload: &first
kind: utf-8
value: FIRST
- destination: 1
payload: &second
kind: utf-8
value: SECOND
- destination: 1
payload: &third
kind: utf-8
value: THIRD
expected:
- step: 0 # All three messages in the queue
messages:
- destination: 1
payload: *first
- destination: 1
payload: *second
- destination: 1
payload: *third
- step: 1 # First message processed
messages:
- destination: 1
payload: *second
- destination: 1
payload: *third
- step: 2 # Second message processed
messages:
- destination: 1
payload: *third
- step: 3 # First and second message awakened
messages:
- destination: 1
payload: *first
- destination: 1
payload: *second
- log: # First and second message processed
- destination: 1000001
payload:
kind: utf-8
value: WAITED
- destination: 1000001
payload:
kind: utf-8
value: WAITED