Skip to content

DATACOUCH-661 - Fix integrations tests from 650 #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

mikereiche
Copy link
Collaborator

The problems were in the tests themselves. The changes in datacouch-650 are fine.
These only run with "mvn integration-test", so the failures were not being caught.

  • You have read the Spring Data contribution guidelines.
  • There is a ticket in the bug tracker for the project in our JIRA.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

@mikereiche mikereiche requested a review from daschl December 8, 2020 08:08
Long airportCount = airportCount = airportRepository.count().block();
List<Airport> airports = airportRepository.findAll().collectList().block();
for (Airport ap : airports) {
System.out.println(ap);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the println needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not anymore. There were 8 airports after inserting 7. The println was to find the extra one - it was was because the deleteAll() in an earlier test did not block. I'll remove the whole findAll()/for

@mikereiche mikereiche force-pushed the datacouch_661_fix_integration_tests_from_650 branch from dc30e43 to 746cdbc Compare December 8, 2020 08:21
@mikereiche mikereiche merged commit 3c59af3 into master Dec 8, 2020
mikereiche added a commit that referenced this pull request Dec 9, 2020
mikereiche added a commit that referenced this pull request Dec 9, 2020
@mikereiche mikereiche deleted the datacouch_661_fix_integration_tests_from_650 branch December 14, 2020 21:51
daschl added a commit that referenced this pull request Feb 17, 2021
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