Skip to content

Fix ClassCastException from ErrorTest#3000

Merged
labkey-tchad merged 1 commit into
developfrom
fb_fixClassCastException
May 19, 2026
Merged

Fix ClassCastException from ErrorTest#3000
labkey-tchad merged 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
@labkey-tchad labkey-tchad merged commit 6ec220c into develop May 19, 2026
8 checks passed
@labkey-tchad labkey-tchad deleted the fb_fixClassCastException branch May 19, 2026 17:20
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.

2 participants