[ 
https://issues.apache.org/jira/browse/CURATOR-602?focusedWorklogId=618439&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-618439
 ]

ASF GitHub Bot logged work on CURATOR-602:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 04/Jul/21 16:56
            Start Date: 04/Jul/21 16:56
    Worklog Time Spent: 10m 
      Work Description: colinkuo commented on pull request #390:
URL: https://github.com/apache/curator/pull/390#issuecomment-873625253


   @tisonkun The existing assertion statements in this test case are not smart 
enough to catch this typo. I'd say this was a *coincidence.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 618439)
    Time Spent: 50m  (was: 40m)

> A typo in a variable of TestGroupMember
> ---------------------------------------
>
>                 Key: CURATOR-602
>                 URL: https://issues.apache.org/jira/browse/CURATOR-602
>             Project: Apache Curator
>          Issue Type: Test
>          Components: Tests
>            Reporter: Colin Kuo
>            Priority: Trivial
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> A typo in the variable name of TestGroupMember.java
> {noformat}
> curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestGroupMember.java{noformat}
> {code:java}
> Map<String, byte[]> currentMembers1 = groupMember1.getCurrentMembers();
> Map<String, byte[]> currentMembers2 = groupMember2.getCurrentMembers();
> Map<String, String> convertMembers1 = Maps.transformValues(currentMembers1, 
> new Function<byte[], String>()
> {
>     @Override
>     public String apply(byte[] input)
>     {
>         return new String(input);
>     }
> });
> //should be currentMembers2
> Map<String, String> convertMembers2 = Maps.transformValues(currentMembers1, 
> new Function<byte[], String>()
> {
>     @Override
>     public String apply(byte[] input)
>     {
>         return new String(input);
>     }
> });
> assertEquals(convertMembers1.size(), 2);
> assertEquals(convertMembers2.size(), 2);
> assertEquals(convertMembers1, convertMembers2);
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to