Skip to content

Commit

Permalink
make pluralization of variables consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdw committed Oct 5, 2021
1 parent 68b6956 commit 7822d36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,18 +442,18 @@ func TestMessageFixtures(t *testing.T) {

rh, err := newReaderHelper(t, buf.Bytes())
require.NoError(t, err)
messagesCount := 0
messageCount := 0
expectedMessageCount := len(tc.messages)
for _, expectedMessageId := range tc.messages {
expectedMessage := fixtureMessages[expectedMessageId]
msg := rh.readMessage()
messagesCount++
messageCount++
require.Equal(t, expectedMessage.key, string(msg.Key))
require.Equal(t, expectedMessage.value, string(msg.Value))
t.Logf("Message %d key & value are what we expected: %s -> %s\n",
messagesCount, string(msg.Key), string(msg.Value))
messageCount, string(msg.Key), string(msg.Value))
}
require.Equal(t, expectedMessageCount, messagesCount)
require.Equal(t, expectedMessageCount, messageCount)
})
}
}
Expand Down

0 comments on commit 7822d36

Please sign in to comment.