Skip to content

Commit

Permalink
Don't load dump files while the startup process
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jul 6, 2012
1 parent 33067fe commit 1d994c6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/search.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ var http = require('http');
var fs = require('fs');

var temporaryDatabase;
var database;

suiteSetup(function() {
temporaryDatabase = utils.createTemporaryDatabase();
database = temporaryDatabase.get();
utils.loadDumpFile(database, __dirname + '/fixture/companies/ddl.grn');
utils.loadDumpFile(database, __dirname + '/fixture/companies/data.grn');
});

suiteTeardown(function() {
Expand All @@ -20,13 +16,18 @@ suiteTeardown(function() {

suite('Search API', function() {
var server;
var database;

setup(function() {
database = temporaryDatabase.get();
utils.loadDumpFile(database, __dirname + '/fixture/companies/ddl.grn');
utils.loadDumpFile(database, __dirname + '/fixture/companies/data.grn');
server = utils.setupServer(database);
});

teardown(function() {
server.close();
temporaryDatabase.clear();
});

function testSearch(path, host, callback) {
Expand Down

0 comments on commit 1d994c6

Please sign in to comment.