Skip to content

Commit

Permalink
removing erroneous tests
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Nelson <[email protected]>
  • Loading branch information
non-fungible-nelson authored Jan 18, 2024
1 parent 5896d04 commit 59dfafd
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,6 @@
import org.junit.jupiter.api.Test;

public class TargetingGasLimitCalculatorTest {
private static final long ADJUSTMENT_FACTOR = 1024L;

@Test
public void verifyGasLimitIsIncreasedWithinLimits() {
FrontierTargetingGasLimitCalculator targetingGasLimitCalculator =
new FrontierTargetingGasLimitCalculator();
assertThat(targetingGasLimitCalculator.nextGasLimit(8_000_000L, 10_000_000L, 1L))
.isEqualTo(8_000_000L + ADJUSTMENT_FACTOR);
}

@Test
public void verifyGasLimitIsDecreasedWithinLimits() {
FrontierTargetingGasLimitCalculator targetingGasLimitCalculator =
new FrontierTargetingGasLimitCalculator();
assertThat(targetingGasLimitCalculator.nextGasLimit(12_000_000L, 10_000_000L, 1L))
.isEqualTo(12_000_000L - ADJUSTMENT_FACTOR);
}

@Test
public void verifyGasLimitReachesTarget() {
Expand Down

0 comments on commit 59dfafd

Please sign in to comment.