Skip to content

JUnit test testGraphIntegrity fails randomly #6

@logological

Description

@logological

The JUnit test de.tudarmstadt.ukp.dkpro.lexsemresource.graph.EntityGraphJGraphTTest.testGraphIntegrity seems to occasionally fail when Jenkins runs it, even though no corresponding code has changed. (For example, in Build 36 the test passed, but in Build 37, where the only change was to add a .gitignore file to the repository, the test failed. The assertion fails as follows:

Error Message

expected:<17> but was:<16>

Stacktrace

java.lang.AssertionError: expected:<17> but was:<16>
    at org.junit.Assert.fail(Assert.java:91)
    at org.junit.Assert.failNotEquals(Assert.java:645)
    at org.junit.Assert.assertEquals(Assert.java:126)
    at org.junit.Assert.assertEquals(Assert.java:470)
    at org.junit.Assert.assertEquals(Assert.java:454)
    at de.tudarmstadt.ukp.dkpro.lexsemresource.graph.EntityGraphJGraphTTest.testGraphIntegrity(EntityGraphJGraphTTest.java:75)

The test always seems to pass when run on my local machine.

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