这是indexloc提供的服务,不要输入任何密码
Skip to content

flaky test (datastore): DatastoreSampleApplicationIntegrationTests #3885

@zhumin8

Description

@zhumin8

Full log, error message:

Error: 4:858 [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 12.98 s <<< FAILURE! -- in com.example.DatastoreSampleApplicationIntegrationTests
Error: 4:859 [ERROR] com.example.DatastoreSampleApplicationIntegrationTests.runTests -- Time elapsed: 3.666 s <<< FAILURE!
org.opentest4j.AssertionFailedError: 
[Verify Delete] 
Expecting actual:
  [Singer***singerId='null', firstName='John', lastName='Doe', albums=null, firstBand=null, bands=, personalInstruments=***,
    Singer***singerId='null', firstName='Jane', lastName='Doe', albums=null, firstBand=null, bands=, personalInstruments=***,
    Singer***singerId='null', firstName='Richard', lastName='Roe', albums=null, firstBand=null, bands=, personalInstruments=***]
to contain exactly (and in same order):
  [Singer***singerId='null', firstName='Frodo', lastName='Baggins', albums=null, firstBand=null, bands=, personalInstruments=***,
    Singer***singerId='null', firstName='Jane', lastName='Doe', albums=null, firstBand=null, bands=, personalInstruments=***,
    Singer***singerId='null', firstName='Richard', lastName='Roe', albums=null, firstBand=null, bands=, personalInstruments=***]
but some elements were not found:
  [Singer***singerId='null', firstName='Frodo', lastName='Baggins', albums=null, firstBand=null, bands=, personalInstruments=***]
and others were not expected:
  [Singer***singerId='null', firstName='John', lastName='Doe', albums=null, firstBand=null, bands=, personalInstruments=***]

	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
	at com.example.DatastoreSampleApplicationIntegrationTests.basicTest(DatastoreSampleApplicationIntegrationTests.java:138)
	at com.example.DatastoreSampleApplicationIntegrationTests.runTests(DatastoreSampleApplicationIntegrationTests.java:94)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

at glance, this seems a racing condition in test setup?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions