[
https://issues.apache.org/jira/browse/GROOVY-11807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18092211#comment-18092211
]
ASF GitHub Bot commented on GROOVY-11807:
-----------------------------------------
testlens-app[bot] commented on PR #2641:
URL: https://github.com/apache/groovy/pull/2641#issuecomment-4828113538
## 🚨 TestLens detected 1 failed test 🚨
Here is what you can do:
1) Inspect the test failures carefully.
2) If you are convinced that some of the tests are flaky, you can mute them
below.
3) Finally, trigger a rerun by checking the rerun checkbox.
### Test Summary
#### [Build and test / lts \(17, windows-latest,
1\)](https://github.com/apache/groovy/actions/runs/28341597783/job/83956989614?pr=2641)
> :test
| Test | Runs |
|---|---|
| AsyncAwaitTest > testAsyncSupportAnyReturnsFirstCompletion\(\) | ❌ |
🏷️ Commit: c1cfd7336b23005b8882fdadb65a9edfa17cf122
▶️ Tests: 49044 executed
🟡 Checks: 6/29 completed
### Test Failures
<details>
<summary><strong>AsyncAwaitTest >
testAsyncSupportAnyReturnsFirstCompletion()</strong> (:test in <a
href="https://github.com/apache/groovy/actions/runs/28341597783/job/83956989614?pr=2641">Build
and test / lts (17, windows-latest, 1)</a>)</summary>
```
Assertion failed:
assert AsyncSupport.any(slow, fast) == 'fast'
| | | |
| | | false
| | GroovyPromise{completed}
| GroovyPromise{completed}
'slow'
at
org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:400)
at TestScript187.run(TestScript187.groovy:7)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:553)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:588)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:572)
at groovy.test.GroovyAssert.assertScript(GroovyAssert.java:106)
at groovy.test.GroovyAssert.assertScript(GroovyAssert.java:96)
at
groovy.AsyncAwaitTest.testAsyncSupportAnyReturnsFirstCompletion(AsyncAwaitTest.groovy:2171)
```
</details>
### Muted Tests
> [!NOTE]
> Checks are currently running using the configuration below.
Select tests to mute in this pull request:
🔲 AsyncAwaitTest > testAsyncSupportAnyReturnsFirstCompletion\(\) <!
> MapWithDefault can break type safety of key set
> -----------------------------------------------
>
> Key: GROOVY-11807
> URL: https://issues.apache.org/jira/browse/GROOVY-11807
> Project: Groovy
> Issue Type: Bug
> Components: groovy-jdk
> Reporter: Eric Milles
> Assignee: Paul King
> Priority: Major
>
> {code}
> Map<Number,?> map = [:].withDefault{ null }
> assert map.get('x') == null
> Number k = map.keySet()[0]
> {code}
> GroovyCastException: Cannot cast object 'x' with class 'java.lang.String' to
> class 'java.lang.Number'
--
This message was sent by Atlassian Jira
(v8.20.10#820010)