Commit 67eb70a
committed
test(smoke): wait for opcua_bridge subscription before PLC inject
Smoke flaked on CI: inject-photoeye-flicker fired ~540 ms before the
opcua_bridge completed its AlarmConditionType subscription handshake
with plc-sim. The OPC UA raise event then had no listener, the bridge
caught only the later clear events from restore-line, and the
MANYMOVE_PLC_PHOTOEYE_FLICKER fault never made it to FaultManager.
Probe the bridge container logs for 'subscribed to AlarmConditionType
events' before the inject, plus a 1s margin for the asyncua handshake
to complete on the plc-sim side. Skip gracefully when the host docker
socket is not reachable from the test environment.1 parent 6ebe454 commit 67eb70a
1 file changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
84 | 119 | | |
85 | 120 | | |
86 | 121 | | |
| |||
0 commit comments