Skip to content

Commit 0743a60

Browse files
committed
Refactor another unstable test snapshot
1 parent cfa7d53 commit 0743a60

10 files changed

+31
-29
lines changed

packages/kusama/src/__snapshots__/assetHubKusama.multisig.e2e.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ exports[`AssetHubKusama Multisig > cancelling a non-existent multisig operation
131131
"dispatchError": {
132132
"Module": {
133133
"error": "0x07000000",
134-
"index": 41,
134+
"index": "(rounded 40)",
135135
},
136136
},
137137
"dispatchInfo": {
138138
"class": "Normal",
139139
"paysFee": "Yes",
140140
"weight": {
141-
"proofSize": "(rounded 17000)",
142-
"refTime": "(rounded 740000000)",
141+
"proofSize": "(rounded 20000)",
142+
"refTime": "(rounded 700000000)",
143143
},
144144
},
145145
},

packages/kusama/src/__snapshots__/kusama.multisig.e2e.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ exports[`Kusama Multisig > cancelling a non-existent multisig operation fails >
131131
"dispatchError": {
132132
"Module": {
133133
"error": "0x07000000",
134-
"index": 31,
134+
"index": "(rounded 30)",
135135
},
136136
},
137137
"dispatchInfo": {
138138
"class": "Normal",
139139
"paysFee": "Yes",
140140
"weight": {
141-
"proofSize": "(rounded 14000)",
142-
"refTime": "(rounded 630000000)",
141+
"proofSize": "(rounded 10000)",
142+
"refTime": "(rounded 600000000)",
143143
},
144144
},
145145
},

packages/kusama/src/__snapshots__/peopleKusama.multisig.e2e.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ exports[`PeopleKusama Multisig > cancelling a non-existent multisig operation fa
131131
"dispatchError": {
132132
"Module": {
133133
"error": "0x07000000",
134-
"index": 41,
134+
"index": "(rounded 40)",
135135
},
136136
},
137137
"dispatchInfo": {
138138
"class": "Normal",
139139
"paysFee": "Yes",
140140
"weight": {
141-
"proofSize": "(rounded 19000)",
142-
"refTime": "(rounded 1400000000)",
141+
"proofSize": "(rounded 20000)",
142+
"refTime": "(rounded 1000000000)",
143143
},
144144
},
145145
},

packages/polkadot/src/__snapshots__/assetHubPolkadot.multisig.e2e.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ exports[`AssetHubPolkadot Multisig > cancelling a non-existent multisig operatio
131131
"dispatchError": {
132132
"Module": {
133133
"error": "0x07000000",
134-
"index": 41,
134+
"index": "(rounded 40)",
135135
},
136136
},
137137
"dispatchInfo": {
138138
"class": "Normal",
139139
"paysFee": "Yes",
140140
"weight": {
141-
"proofSize": "(rounded 17000)",
142-
"refTime": "(rounded 620000000)",
141+
"proofSize": "(rounded 20000)",
142+
"refTime": "(rounded 600000000)",
143143
},
144144
},
145145
},

packages/polkadot/src/__snapshots__/bridgeHubPolkadot.multisig.e2e.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ exports[`BridgeHubPolkadot Multisig > cancelling a non-existent multisig operati
131131
"dispatchError": {
132132
"Module": {
133133
"error": "0x07000000",
134-
"index": 41,
134+
"index": "(rounded 40)",
135135
},
136136
},
137137
"dispatchInfo": {
138138
"class": "Normal",
139139
"paysFee": "Yes",
140140
"weight": {
141-
"proofSize": "(rounded 19000)",
142-
"refTime": "(rounded 1400000000)",
141+
"proofSize": "(rounded 20000)",
142+
"refTime": "(rounded 1000000000)",
143143
},
144144
},
145145
},

packages/polkadot/src/__snapshots__/collectivesPolkadot.multisig.e2e.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ exports[`CollectivesPolkadot Multisig > cancelling a non-existent multisig opera
131131
"dispatchError": {
132132
"Module": {
133133
"error": "0x07000000",
134-
"index": 41,
134+
"index": "(rounded 40)",
135135
},
136136
},
137137
"dispatchInfo": {
138138
"class": "Normal",
139139
"paysFee": "Yes",
140140
"weight": {
141-
"proofSize": "(rounded 19000)",
142-
"refTime": "(rounded 1400000000)",
141+
"proofSize": "(rounded 20000)",
142+
"refTime": "(rounded 1000000000)",
143143
},
144144
},
145145
},

packages/polkadot/src/__snapshots__/coretimePolkadot.multisig.e2e.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ exports[`CoretimePolkadot Multisig > cancelling a non-existent multisig operatio
131131
"dispatchError": {
132132
"Module": {
133133
"error": "0x07000000",
134-
"index": 41,
134+
"index": "(rounded 40)",
135135
},
136136
},
137137
"dispatchInfo": {
138138
"class": "Normal",
139139
"paysFee": "Yes",
140140
"weight": {
141-
"proofSize": "(rounded 19000)",
142-
"refTime": "(rounded 1400000000)",
141+
"proofSize": "(rounded 20000)",
142+
"refTime": "(rounded 1000000000)",
143143
},
144144
},
145145
},

packages/polkadot/src/__snapshots__/peoplePolkadot.multisig.e2e.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ exports[`PeoplePolkadot Multisig > cancelling a non-existent multisig operation
131131
"dispatchError": {
132132
"Module": {
133133
"error": "0x07000000",
134-
"index": 41,
134+
"index": "(rounded 40)",
135135
},
136136
},
137137
"dispatchInfo": {
138138
"class": "Normal",
139139
"paysFee": "Yes",
140140
"weight": {
141-
"proofSize": "(rounded 19000)",
142-
"refTime": "(rounded 1400000000)",
141+
"proofSize": "(rounded 20000)",
142+
"refTime": "(rounded 1000000000)",
143143
},
144144
},
145145
},

packages/polkadot/src/__snapshots__/polkadot.multisig.e2e.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ exports[`Polkadot Multisig > cancelling a non-existent multisig operation fails
138138
"class": "Normal",
139139
"paysFee": "Yes",
140140
"weight": {
141-
"proofSize": "(rounded 14000)",
142-
"refTime": "(rounded 580000000)",
141+
"proofSize": "(rounded 10000)",
142+
"refTime": "(rounded 600000000)",
143143
},
144144
},
145145
},

packages/shared/src/multisig.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,9 +1556,11 @@ async function notFoundCancelTest<
15561556

15571557
await client.dev.newBlock()
15581558

1559-
await checkEvents(failedTxEvents2, { section: 'system', method: 'ExtrinsicFailed' }).toMatchSnapshot(
1560-
'events when cancelling multisig with bogus call hash fails',
1561-
)
1559+
await checkEvents(failedTxEvents2, { section: 'system', method: 'ExtrinsicFailed' })
1560+
.redact({
1561+
number: 1,
1562+
})
1563+
.toMatchSnapshot('events when cancelling multisig with bogus call hash fails')
15621564

15631565
// Check for ExtrinsicFailed event
15641566
events = await client.api.query.system.events()

0 commit comments

Comments
 (0)