Skip to content

Fix ClassCastException from ErrorTest#3000

Open
labkey-tchad wants to merge 1 commit into
developfrom
fb_fixClassCastException
Open

Fix ClassCastException from ErrorTest#3000
labkey-tchad wants to merge 1 commit into
developfrom
fb_fixClassCastException

Conversation

@labkey-tchad
Copy link
Copy Markdown
Member

Rationale

If our test runner hits errors when determining the set of tests to run, we inject a stub test (ErrorTest) into the suite to surface the error on TeamCity. This stub test doesn't work with the recent change to fix logging on TeamCity.

java.lang.ClassCastException: class org.labkey.test.Runner$ErrorTest cannot be cast to class junit.framework.TestSuite (org.labkey.test.Runner$ErrorTest and junit.framework.TestSuite are in unnamed module of loader 'app')
  at org.labkey.test.Runner.addTests(Runner.java:558)
  at org.labkey.test.Runner.getSuite(Runner.java:423)
  at org.labkey.test.Runner.suite(Runner.java:1028)
  at org.labkey.test.Runner.suite(Runner.java:875)

Related Pull Requests

Changes

  • Fix ClassCastException from ErrorTest

@labkey-tchad labkey-tchad self-assigned this May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant