Skip to content

Commit e10745e

Browse files
Potential fix for pull request finding 'Useless comparison test'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 9d456f6 commit e10745e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/github/copilot/sdk/ThreadFactoryProviderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void isVirtualThreadsReturnsBoolean() {
5959
if (javaVersion < 21) {
6060
assertFalse(result, "Expected platform threads on Java < 21");
6161
} else if (result) {
62-
assertTrue(javaVersion >= 21, "Virtual threads are only supported on Java 21+");
62+
assertTrue(result, "Virtual threads should be enabled when reported as supported");
6363
}
6464
}
6565
}

0 commit comments

Comments
 (0)