From 7b1c60c24f1f085b8bb66ce7f1b4656582a9f357 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 4 Dec 2020 12:23:02 -0500 Subject: [PATCH] Testing tests --- tests/src/test/java/power/ItemLiquidGeneratorTests.java | 2 +- tests/src/test/java/power/PowerTestFixture.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/src/test/java/power/ItemLiquidGeneratorTests.java b/tests/src/test/java/power/ItemLiquidGeneratorTests.java index 1e2224753f..756c3b5c64 100644 --- a/tests/src/test/java/power/ItemLiquidGeneratorTests.java +++ b/tests/src/test/java/power/ItemLiquidGeneratorTests.java @@ -34,7 +34,7 @@ public class ItemLiquidGeneratorTests extends PowerTestFixture{ public void createGenerator(InputType inputType){ Vars.state = new GameState(); Vars.state.rules = new Rules(); - generator = new ItemLiquidGenerator(inputType != InputType.liquids, inputType != InputType.items, "fakegen"){ + generator = new ItemLiquidGenerator(inputType != InputType.liquids, inputType != InputType.items, "fakegen" + System.nanoTime()){ { powerProduction = 0.1f; itemDuration = fakeItemDuration; diff --git a/tests/src/test/java/power/PowerTestFixture.java b/tests/src/test/java/power/PowerTestFixture.java index 559d11bed9..32ba976b38 100644 --- a/tests/src/test/java/power/PowerTestFixture.java +++ b/tests/src/test/java/power/PowerTestFixture.java @@ -50,21 +50,21 @@ public class PowerTestFixture{ } protected static PowerGenerator createFakeProducerBlock(float producedPower){ - return new PowerGenerator("fakegen"){{ + return new PowerGenerator("fakegen" + System.nanoTime()){{ buildType = () -> new GeneratorBuild(); powerProduction = producedPower; }}; } protected static Battery createFakeBattery(float capacity){ - return new Battery("fakebattery"){{ + return new Battery("fakebattery" + System.nanoTime()){{ buildType = () -> new BatteryBuild(); consumes.powerBuffered(capacity); }}; } protected static Block createFakeDirectConsumer(float powerPerTick){ - return new PowerBlock("fakedirectconsumer"){{ + return new PowerBlock("fakedirectconsumer" + System.nanoTime()){{ buildType = Building::create; consumes.power(powerPerTick); }};