Fix compile error in test

This commit is contained in:
Rsl1122 2019-08-12 15:45:52 +03:00
parent 1f1a2960f9
commit b5b08491f8

View File

@ -591,14 +591,16 @@ public interface DatabaseTest {
session.endSession(sessionStart + 22345L); session.endSession(sessionStart + 22345L);
execute(DataStoreQueries.storeSession(session)); execute(DataStoreQueries.storeSession(session));
TestPluginLogger logger = new TestPluginLogger();
ConsoleErrorLogger errorHandler = new ConsoleErrorLogger(logger);
new DBCleanTask( new DBCleanTask(
system().getConfigSystem().getConfig(), system().getConfigSystem().getConfig(),
new Locale(), new Locale(),
system().getDatabaseSystem(), system().getDatabaseSystem(),
new QueryServiceImplementation(system().getDatabaseSystem(), system().getServerInfo()), new QueryServiceImplementation(system().getDatabaseSystem(), system().getServerInfo(), logger, errorHandler),
system().getServerInfo(), system().getServerInfo(),
new TestPluginLogger(), logger,
new ConsoleErrorLogger(new TestPluginLogger()) errorHandler
).cleanOldPlayers(db()); ).cleanOldPlayers(db());
Collection<BaseUser> found = db().query(BaseUserQueries.fetchServerBaseUsers(serverUUID())); Collection<BaseUser> found = db().query(BaseUserQueries.fetchServerBaseUsers(serverUUID()));