You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2025. It is now read-only.
FABN-1557 NodeSDK all restart event service (#237)
Event Service would not reconnect after a disconnect. Checking to
avoid connecting during a connect was not reset during the disconnect.
Added more logging and testing.
Signed-off-by: Bret Harrison <beharrison@nc.rr.com>
Copy file name to clipboardExpand all lines: test/ts-scenario/features/base_api_v2.feature
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,6 @@ Scenario: Using only fabric-common on V2 channel
38
38
And the request named myDiscoveryRequest for client fred has a event result matching {"result":"Commit success"}
39
39
And the request named myDiscoveryRequest for client fred has a commit result matching {"status":"SUCCESS"}
40
40
41
-
42
41
When I create an event service myFilteredEventService as client fred on channel basev2channel
43
42
And I regisister a block listener named myFilteredBlockListener with myFilteredEventService for startBlock 1 and endBlock 3 as client fred
44
43
And I regisister a chaincode listener named myFilteredChaincodeListener with myFilteredEventService for createCar event on contract fabcar as client fred
@@ -57,3 +56,16 @@ Scenario: Using only fabric-common on V2 channel
57
56
Then the event listener myFullBlockListener of myFullEventService has results matching {"block":"4"} as client fred
58
57
Then the event listener myFullChaincodeListener of myFullEventService has results matching {"createCar":"Focus"} as client fred
59
58
Then the event listener myFullTransactionListener of myFullEventService has results matching {"transaction":"7"} as client fred
59
+
60
+
When I disconnect Event Service myFilteredEventService as client fred
61
+
And I regisister a block listener named myRestartListener with myFilteredEventService for startBlock 1 and endBlock 6 as client fred
62
+
And I restart the event service myFilteredEventService as filtered blocks to start at block 0 and end at block 6 as client fred
63
+
When I build a new endorsement request named myEventRequest for smart contract named fabcar with arguments [createCar,2008,Chrysler,PTCurser,white,Jones] as client fred on discovery channel basev2channel
64
+
And I commit the endorsement request named myEventRequest as client fred on channel basev2channel
65
+
Then the event listener myRestartListener of myFilteredEventService has results matching {"block":"6"} as client fred
66
+
When I disconnect Event Service myFilteredEventService as client fred
67
+
And I regisister a block listener named myRestartListener with myFilteredEventService for startBlock 1 and endBlock 6 as client fred
68
+
And I restart the event service myFilteredEventService as filtered blocks to start at block 0 and end at block 6 as client fred
69
+
When I build a new endorsement request named myEventRequest for smart contract named fabcar with arguments [createCar,2008,Chrysler,PTCurser,white,Jones] as client fred on discovery channel basev2channel
70
+
And I commit the endorsement request named myEventRequest as client fred on channel basev2channel
71
+
Then the event listener myRestartListener of myFilteredEventService has results matching {"block":"6"} as client fred
0 commit comments