Skip to content

Commit 1926a9a

Browse files
Merge pull request #124 from AstarNetwork/fix/weights-snapshots-temp
fix: redact weights keys from snapshots temprarily
2 parents a6296b8 + 72c4a6e commit 1926a9a

File tree

8 files changed

+28
-18
lines changed

8 files changed

+28
-18
lines changed

tests/xcm-transfer/__snapshots__/astar-asset-hub.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ exports[`Astar & AssetHub > 001: AssetHub transfer USDT to Astar > 002: astar ev
106106
},
107107
"success": true,
108108
"weightUsed": {
109-
"proofSize": "(rounded 9400)",
110-
"refTime": "(rounded 900000000)",
109+
"proofSize": "(redacted)",
110+
"refTime": "(redacted)",
111111
},
112112
},
113113
"method": "Processed",

tests/xcm-transfer/__snapshots__/kusama-shiden.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ exports[`Kusama & Shiden > 001: Kusama transfer KSM to Shiden > 003: shiden even
144144
"data": {
145145
"dmqHead": "(hash)",
146146
"weightUsed": {
147-
"proofSize": "(rounded 8000)",
148-
"refTime": "(rounded 530000000)",
147+
"proofSize": "(redacted)",
148+
"refTime": "(redacted)",
149149
},
150150
},
151151
"method": "DownwardMessagesProcessed",
@@ -157,8 +157,8 @@ exports[`Kusama & Shiden > 001: Kusama transfer KSM to Shiden > 003: shiden even
157157
"origin": "Parent",
158158
"success": true,
159159
"weightUsed": {
160-
"proofSize": "(rounded 9300)",
161-
"refTime": "(rounded 900000000)",
160+
"proofSize": "(redacted)",
161+
"refTime": "(redacted)",
162162
},
163163
},
164164
"method": "Processed",

tests/xcm-transfer/__snapshots__/polkadot-astar.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ exports[`Polkadot & Astar > 001: Polkadot transfer DOT to Astar > 002: astar eve
144144
"data": {
145145
"dmqHead": "(hash)",
146146
"weightUsed": {
147-
"proofSize": "(rounded 8000)",
148-
"refTime": "(rounded 530000000)",
147+
"proofSize": "(redacted)",
148+
"refTime": "(redacted)",
149149
},
150150
},
151151
"method": "DownwardMessagesProcessed",
@@ -157,8 +157,8 @@ exports[`Polkadot & Astar > 001: Polkadot transfer DOT to Astar > 002: astar eve
157157
"origin": "Parent",
158158
"success": true,
159159
"weightUsed": {
160-
"proofSize": "(rounded 9400)",
161-
"refTime": "(rounded 900000000)",
160+
"proofSize": "(redacted)",
161+
"refTime": "(redacted)",
162162
},
163163
},
164164
"method": "Processed",

tests/xcm-transfer/__snapshots__/shiden-asset-hub.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ exports[`Shiden & AssetHub > 001: AssetHub transfer USDT to Shiden > 002: shiden
106106
},
107107
"success": true,
108108
"weightUsed": {
109-
"proofSize": "(rounded 9300)",
110-
"refTime": "(rounded 900000000)",
109+
"proofSize": "(redacted)",
110+
"refTime": "(redacted)",
111111
},
112112
},
113113
"method": "Processed",

tests/xcm-transfer/astar-asset-hub.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ describe('Astar & AssetHub', () => {
3636
'Expected amount was not received',
3737
)
3838

39-
await checkSystemEvents(astar, 'xcmpQueue', 'messageQueue').toMatchSnapshot('002: astar event')
39+
await checkSystemEvents(astar, 'xcmpQueue', 'messageQueue')
40+
// TODO: remove this when astar is upgraded with runtime-1500
41+
.redact({ redactKeys: /proofSize|refTime/ })
42+
.toMatchSnapshot('002: astar event')
4043
},
4144
)
4245

tests/xcm-transfer/kusama-shiden.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ describe('Kusama & Shiden', () => {
2828
'Expected amount was not received',
2929
)
3030

31-
await checkSystemEvents(shiden, 'parachainSystem', 'dmpQueue', 'messageQueue').toMatchSnapshot(
32-
'003: shiden event',
33-
)
31+
await checkSystemEvents(shiden, 'parachainSystem', 'dmpQueue', 'messageQueue')
32+
// TODO: remove this when shiden is upgraded with runtime-1500
33+
.redact({ redactKeys: /proofSize|refTime/ })
34+
.toMatchSnapshot('003: shiden event')
3435
},
3536
)
3637

tests/xcm-transfer/polkadot-astar.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ describe('Polkadot & Astar', () => {
2828
'Expected amount was not received',
2929
)
3030

31-
await checkSystemEvents(astar, 'parachainSystem', 'dmpQueue', 'messageQueue').toMatchSnapshot('002: astar event')
31+
await checkSystemEvents(astar, 'parachainSystem', 'dmpQueue', 'messageQueue')
32+
// TODO: remove this when astar is upgraded with runtime-1500
33+
.redact({ redactKeys: /proofSize|refTime/ })
34+
.toMatchSnapshot('002: astar event')
3235
},
3336
)
3437

tests/xcm-transfer/shiden-asset-hub.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ describe('Shiden & AssetHub', () => {
3636
'Expected amount was not received',
3737
)
3838

39-
await checkSystemEvents(shiden, 'xcmpQueue', 'messageQueue').toMatchSnapshot('002: shiden event')
39+
await checkSystemEvents(shiden, 'xcmpQueue', 'messageQueue')
40+
// TODO: remove this when shiden is upgraded with runtime-1500
41+
.redact({ redactKeys: /proofSize|refTime/ })
42+
.toMatchSnapshot('002: shiden event')
4043
},
4144
)
4245

0 commit comments

Comments
 (0)