Skip to content

[Tests] LRHistogramDiffTest is failed when run in isolation #57

@dector

Description

@dector

Describe the bug
LRHistogramDiffTest is failing when run in isolation

To Reproduce

  1. Run mvn -Dtest=-Dtest=LRHistogramDiffTest test.
  2. Observe test failing.
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.github.difflib.algorithm.jgit.LRHistogramDiffTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 28.826 sec <<< FAILURE! - in com.github.difflib.algorithm.jgit.LRHistogramDiffTest
testPossibleDiffHangOnLargeDatasetDnaumenkoIssue26(com.github.difflib.algorithm.jgit.LRHistogramDiffTest)  Time elapsed: 28.776 sec  <<< FAILURE!
java.lang.AssertionError: expected:<50> but was:<246579>
	at com.github.difflib.algorithm.jgit.LRHistogramDiffTest.testPossibleDiffHangOnLargeDatasetDnaumenkoIssue26(LRHistogramDiffTest.java:88)


Results :

Failed tests: 
  LRHistogramDiffTest.testPossibleDiffHangOnLargeDatasetDnaumenkoIssue26:88 expected:<50> but was:<246579>

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

However running all tests with mvn test is sucessfull.

Expected behavior
Test is passing.

System

  • Java version: 1.8.0_201.
  • Version: Current master (156f4f2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions