Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prybalko committed May 30, 2023
1 parent 8fd6e92 commit fc714ba
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 74 deletions.
15 changes: 6 additions & 9 deletions cli/src/cleaner/for_tests/test1/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@
"base58prefix": 0,
"logo": "polkadot",
"decimals": 10,
"metadataQrs": [
{
"version": 9,
"file": {
"path": "qr/polkadot_metadata_9.apng",
"signedBy": "Parity"
},
"status": "now"
"metadataQr": {
"version": 9,
"file": {
"path": "qr/polkadot_metadata_9.apng",
"signedBy": "Parity"
}
],
},
"liveMetaVersion": 9,
"latestMetadata": "",
"specsQr": {
Expand Down
15 changes: 6 additions & 9 deletions cli/src/cleaner/for_tests/test2/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@
"base58prefix": 0,
"logo": "polkadot",
"decimals": 10,
"metadataQrs": [
{
"version": 10,
"file": {
"path": "qr/polkadot_metadata_10.apng",
"signedBy": "Parity"
},
"status": "now"
"metadataQr": {
"version": 10,
"file": {
"path": "qr/polkadot_metadata_10.apng",
"signedBy": "Parity"
}
],
},
"latestMetadata": "",
"liveMetaVersion": 10,
"specsQr": {
Expand Down
15 changes: 6 additions & 9 deletions cli/src/cleaner/for_tests/test3/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@
"base58prefix": 0,
"logo": "polkadot",
"decimals": 10,
"metadataQrs": [
{
"version": 9,
"file": {
"path": "qr/polkadot_metadata_9.apng",
"signedBy": "Parity"
},
"status": "now"
"metadataQr": {
"version": 9,
"file": {
"path": "qr/polkadot_metadata_9.apng",
"signedBy": "Parity"
}
],
},
"liveMetaVersion": 9,
"latestMetadata": "",
"specsQr": {
Expand Down
15 changes: 6 additions & 9 deletions cli/src/cleaner/for_tests/test4/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@
"base58prefix": 0,
"logo": "polkadot",
"decimals": 10,
"metadataQrs": [
{
"version": 9,
"file": {
"path": "qr/polkadot_metadata_9.apng",
"signedBy": "Parity"
},
"status": "now"
"metadataQr": {
"version": 9,
"file": {
"path": "qr/polkadot_metadata_9.apng",
"signedBy": "Parity"
}
],
},
"liveMetaVersion": 9,
"latestMetadata": "",
"specsQr": {
Expand Down
48 changes: 10 additions & 38 deletions cli/src/collector/for_tests/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,17 @@
"logo": "logo",
"decimals": 10,
"liveMetaVersion": 9,
"metadataQrs": [
{
"version": 9,
"file": {
"path": "for_tests/polkadot_metadata_9.apng",
"signedBy": "Test Verifier",
"source": {
"type": "Rpc",
"block": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
},
"status": "now"
},
{
"version": 10,
"file": {
"path": "for_tests/polkadot_metadata_10.apng",
"signedBy": "Test Verifier",
"source": {
"type": "Wasm",
"github_repo": "paritytech/polkadot",
"hash": "0xbce731f223d5fd37ecacafb5eae59b8e9df39154cdea1f3692525c260534f8d7"
}
},
"status": "future"
},
{
"version": 11,
"file": {
"path": "for_tests/polkadot_metadata_11.apng",
"signedBy": "Test Verifier",
"source": {
"type": "Rpc",
"block": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
},
"status": "future"
"metadataQr": {
"version": 9,
"file": {
"path": "for_tests/polkadot_metadata_9.apng",
"signedBy": "Test Verifier",
"source": {
"type": "Rpc",
"block": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
}
],
},
"latestMetadata": "for_tests/polkadot_metadata_latest.apng",
"specsQr": {
"path": "for_tests/polkadot_specs.png",
Expand Down

0 comments on commit fc714ba

Please sign in to comment.