Skip to content

Commit

Permalink
revert weird test change
Browse files Browse the repository at this point in the history
  • Loading branch information
mholtzman committed Feb 26, 2023
1 parent feafb41 commit 4e9bc09
Showing 1 changed file with 57 additions and 2 deletions.
59 changes: 57 additions & 2 deletions test/main/store/migrations/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,43 @@ describe('migration 21', () => {
main: {
_version: 20,
networks: {
ethereum: {}
ethereum: {
5: {
id: 5,
type: 'ethereum',
layer: 'testnet',
symbol: 'ETH',
name: 'Görli',
explorer: 'https://goerli.etherscan.io',
gas: {
price: {
selected: 'standard',
levels: { slow: '', standard: '', fast: '', asap: '', custom: '' }
}
},
connection: {
primary: {
on: true,
current: 'infura',
status: 'loading',
connected: false,
type: '',
network: '',
custom: ''
},
secondary: {
on: false,
current: 'custom',
status: 'loading',
connected: false,
type: '',
network: '',
custom: ''
}
},
on: false
}
}
},
networksMeta: {
ethereum: {}
Expand Down Expand Up @@ -698,7 +734,26 @@ describe('migration 21', () => {
expect(goerli.on).toBe(false)
})

it('xxxturns off goerli if the secondary connection was reset whilst the primary connection is inactive', () => {
it('turns off goerli if the secondary connection was reset whilst the primary connection is inactive', () => {
state.main.networks.ethereum[5].connection.primary = {
on: false,
current: 'infura',
status: 'loading',
connected: false,
type: '',
network: '',
custom: ''
}
state.main.networks.ethereum[5].connection.secondary = {
on: false,
current: 'prylabs',
status: 'disconnected',
connected: false,
type: '',
network: '',
custom: ''
}

const updatedState = migrations.apply(state, 21)
const goerli = updatedState.main.networks.ethereum[5]

Expand Down

0 comments on commit 4e9bc09

Please sign in to comment.