mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-05 16:30:24 +08:00
Oops revert test data generation data amount increase
This commit is contained in:
parent
ead1b401bc
commit
246f19a90f
@ -26,7 +26,6 @@ import com.djrapitops.plan.storage.database.transactions.commands.RemoveEverythi
|
||||
import com.djrapitops.plan.storage.database.transactions.events.TPSStoreTransaction;
|
||||
import com.djrapitops.plan.utilities.comparators.TPSComparator;
|
||||
import com.djrapitops.plan.utilities.java.Lists;
|
||||
import org.junit.jupiter.api.RepeatedTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import utilities.RandomData;
|
||||
|
||||
@ -60,7 +59,7 @@ public interface TPSQueriesTest extends DatabaseTestPreparer {
|
||||
assertTrue(db().query(TPSQueries.fetchTPSDataOfAllServersBut(0, System.currentTimeMillis(), ServerUUID.randomUUID())).isEmpty());
|
||||
}
|
||||
|
||||
@RepeatedTest(100)
|
||||
@Test
|
||||
default void playerMaxPeakIsCorrect() {
|
||||
List<TPS> tpsData = RandomData.randomTPS();
|
||||
|
||||
|
@ -73,7 +73,7 @@ public class RandomData {
|
||||
|
||||
public static List<TPS> randomTPS() {
|
||||
List<TPS> test = new ArrayList<>();
|
||||
for (int i = 0; i < randomInt(5, 1000000); i++) {
|
||||
for (int i = 0; i < randomInt(5, 100); i++) {
|
||||
int randInt = r.nextInt();
|
||||
long randLong = Math.abs(r.nextLong());
|
||||
test.add(new TPS(randLong, randLong, randInt, randLong, randLong, randInt, randInt, randLong));
|
||||
|
Loading…
Reference in New Issue
Block a user