Browse Source

UploadPackTest: Rename variable to avoid hiding class member

Change-Id: I9e02642b2f56a735681e58b8c8d6e3545ef9093b
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-5.5
David Pursehouse 6 years ago
parent
commit
9f5d271b12
  1. 8
      org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java

8
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java

@ -1088,8 +1088,8 @@ public class UploadPackTest {
PacketLineIn.END); PacketLineIn.END);
PacketLineIn pckIn = new PacketLineIn(recvStream); PacketLineIn pckIn = new PacketLineIn(recvStream);
assertThat(pckIn.readString(), is("packfile")); assertThat(pckIn.readString(), is("packfile"));
ReceivedPackStatistics stats = parsePack(recvStream); ReceivedPackStatistics receivedStats = parsePack(recvStream);
assertTrue(stats.getNumOfsDelta() == 0); assertTrue(receivedStats.getNumOfsDelta() == 0);
// With ofs-delta. // With ofs-delta.
recvStream = uploadPackV2( recvStream = uploadPackV2(
@ -1101,8 +1101,8 @@ public class UploadPackTest {
PacketLineIn.END); PacketLineIn.END);
pckIn = new PacketLineIn(recvStream); pckIn = new PacketLineIn(recvStream);
assertThat(pckIn.readString(), is("packfile")); assertThat(pckIn.readString(), is("packfile"));
stats = parsePack(recvStream); receivedStats = parsePack(recvStream);
assertTrue(stats.getNumOfsDelta() != 0); assertTrue(receivedStats.getNumOfsDelta() != 0);
} }
@Test @Test

Loading…
Cancel
Save