Skip to content

Commit a8df8f7

Browse files
committed
Use the non-spy reference when comparing expectedUrl
1 parent 578493d commit a8df8f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/java/com/backblaze/b2/client/B2StorageClientWebifierImplTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ public void testDownloadById() throws B2Exception {
12041204
" X-Bz-Test-Mode: force_cap_exceeded\n"
12051205
);
12061206

1207-
assertEquals(expectedUrl, webifierSpy.getDownloadByIdUrl(ACCOUNT_AUTH, request));
1207+
assertEquals(expectedUrl, webifier.getDownloadByIdUrl(ACCOUNT_AUTH, request));
12081208

12091209
checkRequestCategory(OTHER, w -> w.downloadById(ACCOUNT_AUTH, request, noopContentHandler));
12101210
}
@@ -1318,7 +1318,7 @@ public void testDownloadByName() throws B2Exception {
13181318
" User-Agent: SecretAgentMan/3.19.28\n" +
13191319
" X-Bz-Test-Mode: force_cap_exceeded\n"
13201320
);
1321-
assertEquals(expectedUrl, webifierSpy.getDownloadByNameUrl(ACCOUNT_AUTH, request));
1321+
assertEquals(expectedUrl, webifier.getDownloadByNameUrl(ACCOUNT_AUTH, request));
13221322

13231323
checkRequestCategory(OTHER, w -> w.downloadByName(ACCOUNT_AUTH, request, noopContentHandler));
13241324
}

0 commit comments

Comments
 (0)