-
-
Notifications
You must be signed in to change notification settings - Fork 27.3k
fixed failing tests (#860) #880
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
Conversation
Test is not passed. ~/j/twin> java -version ~/java-design-patterns> cd twin/ T E S T SRunning com.iluwatar.twin.AppTest testSuspend() Time elapsed: 0.001 sec <<< ERROR! Results : Tests in error: Tests run: 7, Failures: 0, Errors: 2, Skipped: 0 [INFO] ------------------------------------------------------------------------ |
@alonsoir : could you please check the changes for the pull request are merged on your local environment. It is odd that I don't see the issue after the fix. Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
bash-3.2$ mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------< com.iluwatar:twin >--------------------------
[INFO] Building twin 1.20.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ twin ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (prepare-agent) @ twin ---
[INFO] argLine set to -javaagent:/Users/sethishi/.m2/repository/org/jacoco/org.jacoco.agent/0.7.2.201409121644/org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=/Users/sethishi/Documents/pworkspace/java-design-patterns/twin/target/jacoco.exec
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ twin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/sethishi/Documents/pworkspace/java-design-patterns/twin/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ twin ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to /Users/sethishi/Documents/pworkspace/java-design-patterns/twin/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ twin ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/sethishi/Documents/pworkspace/java-design-patterns/twin/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ twin ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /Users/sethishi/Documents/pworkspace/java-design-patterns/twin/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ twin ---
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.iluwatar.twin.AppTest
13:50:56.587 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
13:50:56.591 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
13:50:56.591 [Thread-2] INFO com.iluwatar.twin.BallItem - move
13:50:56.842 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
13:50:56.842 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
13:50:56.842 [Thread-2] INFO com.iluwatar.twin.BallItem - move
13:50:57.095 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
13:50:57.096 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
13:50:57.096 [Thread-2] INFO com.iluwatar.twin.BallItem - move
13:50:57.339 [main] INFO com.iluwatar.twin.BallThread - Begin to suspend BallThread
13:50:58.093 [main] INFO com.iluwatar.twin.BallThread - Begin to resume BallThread
13:50:58.100 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
13:50:58.101 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
13:50:58.101 [Thread-2] INFO com.iluwatar.twin.BallItem - move
13:50:58.356 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
13:50:58.356 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
13:50:58.356 [Thread-2] INFO com.iluwatar.twin.BallItem - move
13:50:58.609 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
13:50:58.610 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
13:50:58.610 [Thread-2] INFO com.iluwatar.twin.BallItem - move
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.412 sec - in com.iluwatar.twin.AppTest
Running com.iluwatar.twin.BallItemTest
13:50:59.076 [main] INFO com.iluwatar.twin.BallItem - move
LOGBACK: No context given for com.iluwatar.twin.BallItemTest$InMemoryAppender[null]
13:50:59.086 [main] INFO com.iluwatar.twin.GameItem - draw
LOGBACK: No context given for com.iluwatar.twin.BallItemTest$InMemoryAppender[null]
13:50:59.087 [main] INFO com.iluwatar.twin.BallItem - doDraw
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.221 sec - in com.iluwatar.twin.BallItemTest
Running com.iluwatar.twin.BallThreadTest
13:50:59.122 [main] INFO com.iluwatar.twin.BallThread - Begin to suspend BallThread
LOGBACK: No context given for com.iluwatar.twin.BallItemTest$InMemoryAppender[null]
13:51:00.126 [main] INFO com.iluwatar.twin.BallThread - Begin to resume BallThread
13:51:00.592 [main] INFO com.iluwatar.twin.BallThread - Begin to suspend BallThread
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.561 sec - in com.iluwatar.twin.BallThreadTest
Results :
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ twin ---
[INFO] Building jar: /Users/sethishi/Documents/pworkspace/java-design-patterns/twin/target/twin-1.20.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.729 s
[INFO] Finished at: 2019-05-24T13:51:02+01:00
[INFO] ------------------------------------------------------------------------ |
Before compiling, I do a git pull to make sure I'm up to date, what's more, I even deleted the repository and made a git clone, but the problem persists. I'll give you a pastebin with the output of my compilation. |
I am doing a git pull on master branch from iluwatar. Ok, good news, twin project tests are passing, bad news because other project is failing. |
@iluwatar could you please review the changes done for twin pattern. |
No, still not working. |
Thanks @id4us 👍 |
Bug fix for (#860 )
Pull request description