imagej / imagej/imagej-ops

CachedOpEnvironmentTest fails on Windows

Open
#578 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
94
Forks
44
PR merge metrics
No merged PRs in 30d

Description

When building with `mvn clean install` on Windows (MINGW64, Git Bash), `CachedOpEnvironmentTest` fails with the following error:

```
Running net.imagej.ops.cached.CachedOpEnvironmentTest
Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.417 sec <<< FAILURE! - in net.imagej.ops.cached.CachedOpEnvironmentTest
testOptionalParameter(net.imagej.ops.cached.CachedOpEnvironmentTest) Time elapsed: 0.328 sec <<< FAILURE!
java.lang.AssertionError: expected same: was not:
at net.imagej.ops.cached.CachedOpEnvironmentTest.testOptionalParameter(CachedOpEnvironmentTest.java:118)
```

(I also noticed that, on Windows, `CachedOpEnvironmentTest` is the third test being run, while on Travis it appears much later in the logs.)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run `mvn clean install` on Windows with MINGW64/Git Bash and inspect `net.imagej.ops.cached.CachedOpEnvironmentTest`, especially `testOptionalParameter` at line 118. Compare the Windows failure with the test's expected object identity; done means the test passes on Windows without regressing the other reported test results.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
operating-systems, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.