Skip to content

Commit 6a56851

Browse files
committed
sub type merg
1 parent c8af292 commit 6a56851

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

e2e/distributed-subscriptions-webhooks/distributed-subscriptions-webhooks.e2e.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,16 @@ it('should receive subscription event on distributed gateway', async () => {
114114
{
115115
"data": {
116116
"newProduct": {
117-
"name": "iPhone 10 Pro",
118-
"price": 110.99,
117+
"name": "Roomba X60",
118+
"price": 100,
119119
},
120120
},
121121
},
122122
{
123123
"data": {
124124
"newProduct": {
125-
"name": "iPhone 10 Pro",
126-
"price": 110.99,
125+
"name": "Roomba X60",
126+
"price": 100,
127127
},
128128
},
129129
},
@@ -221,16 +221,16 @@ it('should distribute subscription event even if main gateway is not subscribed'
221221
{
222222
"data": {
223223
"newProduct": {
224-
"name": "iPhone 10 Pro",
225-
"price": 110.99,
224+
"name": "Roomba X60",
225+
"price": 100,
226226
},
227227
},
228228
},
229229
{
230230
"data": {
231231
"newProduct": {
232-
"name": "iPhone 10 Pro",
233-
"price": 110.99,
232+
"name": "Roomba X60",
233+
"price": 100,
234234
},
235235
},
236236
},

e2e/distributed-subscriptions-webhooks/services/products.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ createServer(
4848
method: 'POST',
4949
headers: { 'content-type': 'application/json' },
5050
body: JSON.stringify({
51-
id: 'ip10pro',
52-
name: 'iPhone 10 Pro',
53-
price: 110.99,
51+
id: '60',
5452
}),
5553
},
5654
);

e2e/event-driven-federated-subscriptions/event-driven-federated-subscriptions.e2e.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ it('should receive subscription published event on all distributed gateways', as
9090
await pub.publish(
9191
'my-shared-gateways:new_product',
9292
JSON.stringify({
93-
id: 'ip10pro',
94-
name: 'iPhone 10 Pro',
95-
price: 110.99,
93+
id: '60',
9694
}),
9795
);
9896
})(),
@@ -112,24 +110,24 @@ it('should receive subscription published event on all distributed gateways', as
112110
{
113111
"data": {
114112
"newProduct": {
115-
"name": "iPhone 10 Pro",
116-
"price": 110.99,
113+
"name": "Roomba X60",
114+
"price": 100,
117115
},
118116
},
119117
},
120118
{
121119
"data": {
122120
"newProduct": {
123-
"name": "iPhone 10 Pro",
124-
"price": 110.99,
121+
"name": "Roomba X60",
122+
"price": 100,
125123
},
126124
},
127125
},
128126
{
129127
"data": {
130128
"newProduct": {
131-
"name": "iPhone 10 Pro",
132-
"price": 110.99,
129+
"name": "Roomba X60",
130+
"price": 100,
133131
},
134132
},
135133
},

0 commit comments

Comments
 (0)