Skip to content

Commit

Permalink
Don't force a clean cache for mockery.
Browse files Browse the repository at this point in the history
Speeds up tests by 2x... Might fix Circle CI issues.
  • Loading branch information
blowery committed Dec 21, 2015
1 parent 88a7137 commit 364fadd
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions client/lib/feed-store/test/feed-store-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ var FeedState = require( '../constants' ).state,
FeedStore, FeedStoreActions;

describe( 'FeedStore', function() {
this.timeout( 10 * 1000 ); // give this 10s for now, circle ci hates us
var readFeedStub,
mockWpcom = {
undocumented: function() {
Expand All @@ -21,7 +20,6 @@ describe( 'FeedStore', function() {

before( function() {
mockery.enable( {
useCleanCache: true,
warnOnUnregistered: false
} );
mockery.registerAllowable( [ '../', '../actions' ] );
Expand Down
2 changes: 0 additions & 2 deletions client/lib/feed-stream-store/test/post-list-store-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ var expect = require( 'chai' ).expect,
var PostListStore, FeedPostStore, FeedSubscriptionStore;

describe( 'FeedStreamStore', function() {
this.timeout( 10 * 1000 );
before( function() {
mockery.enable( {
useCleanCache: true,
warnOnUnregistered: false
} );
mockery.registerAllowable( '../feed-stream' );
Expand Down
1 change: 0 additions & 1 deletion client/lib/notification-settings-store/test/store-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe( 'Notification Settings Store', () => {

before( () => {
mockery.enable( {
useCleanCache: true,
warnOnUnregistered: false
} );
mockery.registerAllowable( [ '../', '../actions' ] );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ var SiteExample = {
describe( 'SiteStore', function() {
before( function() {
mockery.enable( {
useCleanCache: true,
warnOnUnregistered: false
} );
mockery.registerAllowable( [ '../', '../actions' ] );
Expand Down
1 change: 0 additions & 1 deletion client/lib/recommended-sites-store/test/action-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ var mockSites = null,
describe( 'Recommended Site Store Actions', function() {
before( function() {
mockery.enable( {
useCleanCache: true,
warnOnUnregistered: false
} );
mockery.registerAllowable( '../actions' );
Expand Down

0 comments on commit 364fadd

Please sign in to comment.