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

Loading…
Cancel
Save