Skip to content

Commit 768a781

Browse files
committed
Fix wrong order of resetting data in test helper.
1 parent d30c3e9 commit 768a781

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/helper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ delete defaultConfiguration.cloud;
5252

5353
// Allows testing specific configurations of Parse Server
5454
var setServerConfiguration = configuration => {
55-
api = new ParseServer(configuration);
55+
server.close();
56+
cache.clearCache();
5657
app = express();
58+
api = new ParseServer(configuration);
5759
app.use('/1', api);
58-
cache.clearCache();
59-
server.close();
6060
server = app.listen(port);
61-
}
61+
};
6262

6363
var restoreServerConfiguration = () => setServerConfiguration(defaultConfiguration);
6464

0 commit comments

Comments
 (0)