mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-14 00:11:23 +00:00
Fix lifecycle test to not fail during release
This commit is contained in:
@@ -50,11 +50,11 @@ public class LifecycleTest extends AbstractGitHubWireMockTest {
|
||||
}
|
||||
|
||||
private GHAsset uploadAsset(GHRelease release) throws IOException {
|
||||
GHAsset asset = release.uploadAsset(new File("pom.xml"), "application/text");
|
||||
GHAsset asset = release.uploadAsset(new File("LICENSE.txt"), "application/text");
|
||||
assertNotNull(asset);
|
||||
List<GHAsset> assets = release.getAssets();
|
||||
assertEquals(1, assets.size());
|
||||
assertEquals("pom.xml", assets.get(0).getName());
|
||||
assertEquals("LICENSE.txt", assets.get(0).getName());
|
||||
|
||||
return asset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user