Skip to content

Commit

Permalink
Fix failing E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Jul 13, 2023
1 parent 18f1a1e commit 736065d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
3 changes: 0 additions & 3 deletions test/e2e/fixture-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,6 @@ class FixtureBuilder {

withNetworkController(data) {
merge(this.fixture.data.NetworkController, data);

console.log("network controller is: ", this.fixture.data.NetworkController);

return this;
}

Expand Down
10 changes: 5 additions & 5 deletions test/e2e/tests/custom-rpc-history.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,21 +190,21 @@ describe('Stores custom RPC history', function () {
);
});

it.only('finds all recent RPCs in history', async function () {
it('finds all recent RPCs in history', async function () {
await withFixtures(
{
fixtures: new FixtureBuilder()
.withNetworkController({
networkConfigurations: {
networkConfigurationId: {
networkConfigurationIdOne: {
rpcUrl: 'http://127.0.0.1:8545/1',
chainId: '0x539',
ticker: 'ETH',
nickname: 'http://127.0.0.1:8545/1',
rpcPrefs: {},
type: 'rpc',
},
networkConfigurationId2: {
networkConfigurationIdTwo: {
rpcUrl: 'http://127.0.0.1:8545/2',
chainId: '0x539',
ticker: 'ETH',
Expand Down Expand Up @@ -250,14 +250,14 @@ describe('Stores custom RPC history', function () {
fixtures: new FixtureBuilder()
.withNetworkController({
networkConfigurations: {
networkConfigurationId: {
networkConfigurationIdOne: {
rpcUrl: 'http://127.0.0.1:8545/1',
chainId: '0x539',
ticker: 'ETH',
nickname: 'http://127.0.0.1:8545/1',
rpcPrefs: {},
},
networkConfigurationId2: {
networkConfigurationIdTwo: {
rpcUrl: 'http://127.0.0.1:8545/2',
chainId: '0x539',
ticker: 'ETH',
Expand Down
5 changes: 0 additions & 5 deletions ui/selectors/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1176,11 +1176,6 @@ export function getCurrentNetwork(state) {
providerConfig.type === 'rpc'
? (network) => network.id === providerConfig.id
: (network) => network.id === providerConfig.type;

console.log('providerConfig: ', providerConfig);
console.log('allNetworks: ', allNetworks);
console.log('allNetworks.find(filter): ', allNetworks.find(filter));

return allNetworks.find(filter);
}

Expand Down

0 comments on commit 736065d

Please sign in to comment.