Skip to content

Commit

Permalink
[test] Fix Argos-CI flakyness (mui#12142)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored and Joe Shelby committed Jul 14, 2018
1 parent 3dd6d22 commit 6812f0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
20 changes: 3 additions & 17 deletions test/regressions/TestViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,15 @@ const styles = theme => ({
},
});

class TestViewer extends React.Component {
getChildContext() {
return {
url: {
pathname: '/',
},
};
}
function TestViewer(props) {
const { children, classes } = props;

render() {
const { children, classes } = this.props;

return <div className={classes.root}>{children}</div>;
}
return <div className={classes.root}>{children}</div>;
}

TestViewer.propTypes = {
children: PropTypes.node.isRequired,
classes: PropTypes.object.isRequired,
};

TestViewer.childContextTypes = {
url: PropTypes.object,
};

export default withStyles(styles)(TestViewer);
4 changes: 4 additions & 0 deletions test/regressions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ vrtest.before(() => {
google: {
families: ['Roboto:300,400,500', 'Material+Icons'],
},
custom: {
families: ['Font Awesome 5 Free:400,900'],
urls: ['https://use.fontawesome.com/releases/v5.1.0/css/all.css'],
},
timeout: 20000,
active: () => {
resolve('active');
Expand Down

0 comments on commit 6812f0e

Please sign in to comment.