Skip to content
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

Compile error: TabularOutputPrinterTest.should_mention_number_of_results:98 #215

Open
somera opened this issue May 7, 2023 · 6 comments

Comments

@somera
Copy link

somera commented May 7, 2023

I get compile error

[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   TabularOutputPrinterTest.should_mention_number_of_results:98
Expecting actual:
  "Found 1 results

  Coordinates                        Last updated
  ===========                        ============
  org.codehaus.plexus:plexus-utils   27 Aug. 2021 at 02:08 (MESZ)

"
to contain:
  "Found 1 results"
[INFO]
[ERROR] Tests run: 81, Failures: 1, Errors: 0, Skipped: 0

on main branch and v0.3.4 tag. with

$ java --version
openjdk 17.0.7 2023-04-18
OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)
OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)
@mthmulders
Copy link
Owner

This is a very strange test failure, @somera. As you can see from the output you have supplied, the actual output does contain the expected text ("Found 1 results"). I'm using the exact same version of Java and I'm not seeing such test failures.

Can you provide some more detail, such as:

  1. Which operating system and version are you using?
  2. What is the exact command you use to invoke Maven?
  3. What version of Maven are you using?
  4. Is it consistently failing, or randomly?

@somera
Copy link
Author

somera commented May 7, 2023

This is a very strange test failure, @somera. As you can see from the output you have supplied, the actual output does contain the expected text ("Found 1 results"). I'm using the exact same version of Java and I'm not seeing such test failures.

Can you provide some more detail, such as:

  1. Which operating system and version are you using?

Windows 10

On Ubuntu it works fine.

  1. What is the exact command you use to invoke Maven?

mvn clean install

  1. What version of Maven are you using?
$ mvn --version
Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
Maven home: D:\bin\apache\apache-maven-3.9.1
Java version: 17.0.7, vendor: Eclipse Adoptium, runtime: D:\bin\Java\jdk-17.0.7+7
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
  1. Is it consistently failing, or randomly?

consistently

@mthmulders
Copy link
Owner

Thanks for your detailed answers, @somera.

The only difference is the operating system, as you are using Windows while I am using macOS on my primary machine. But there's a CI job running on Microsoft Windows Server 2022 where the test case does not fail.

I hope you can debug why it is failing, as I can't reproduce the problem and it's also not failing on any of my other machines (Ubuntu 23.04 or Windows 10).

@somera
Copy link
Author

somera commented May 7, 2023

I will take a look in the next days.

@somera
Copy link
Author

somera commented May 8, 2023

Looks strange, cause tha value of

        var table = buffer.toString();
        assertThat(table).contains("Found 1 results");

is

image

It should work.

@somera
Copy link
Author

somera commented May 8, 2023

But it works with

        var table = buffer.toString();
        assertThat(table).contains("org.codehaus.plexus:plexus-utils");

I don't know why it's not working with Found 1 results

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

No branches or pull requests

2 participants