Skip to content

Save() operation doesn't seem to be synchronous [DATACOUCH-589] #897

@spring-projects-issues

Description

@spring-projects-issues

murdos opened DATACOUCH-589 and commented

Using a non reactive repository, the following code in an integration test randomly fail, which make me think that then entity is not always saved when the save() method returns:

// Initialize the database
userRepository.save(user);
int databaseSizeBeforeCreate = userRepository.findAll().size();

assumeThat(databaseSizeBeforeCreate).isEqualTo(1); // assumption randomly fail with databaseSizeBeforeCreate being equal to 0

Affects: 4.1 M2 (2020.0.0)

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions