Fix Java packaging (#25838)

* Fix Java packaging

* fix flaky test
This commit is contained in:
Brennan 2020-09-15 10:20:43 -07:00 committed by GitHub
parent 17e04b70b0
commit ce76ae75f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,8 @@
plugins {
id 'java'
id 'maven'
}
group 'com.microsoft.signalr'
dependencies {
@ -22,6 +27,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
task generatePOM {
pom {
project {
artifactId 'signalr'
inceptionYear '2018'
description 'ASP.NET Core SignalR Client for Java applications'
url 'https://github.com/dotnet/aspnetcore'

View File

@ -1,3 +1,8 @@
plugins {
id 'java'
id 'maven'
}
group 'com.microsoft.signalr.messagepack'
dependencies {
@ -21,6 +26,7 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
task generatePOM {
pom {
project {
artifactId 'signalr-messagepack'
inceptionYear '2020'
description 'MessagePack protocol implementation for ASP.NET Core SignalR Client for Java applications'
url 'https://github.com/dotnet/aspnetcore'

View File

@ -2974,7 +2974,10 @@ class HubConnectionTest {
assertTrue(close.blockingAwait(5, TimeUnit.SECONDS));
return Single.just(new HttpResponse(204, "", TestUtils.emptyByteBuffer));
})
.on("DELETE", (req) -> Single.just(new HttpResponse(200, "", TestUtils.stringToByteBuffer(""))));
.on("DELETE", (req) -> {
close.onComplete();
return Single.just(new HttpResponse(200, "", TestUtils.stringToByteBuffer("")));
});
HubConnection hubConnection = HubConnectionBuilder
.create("http://example.com")
@ -2984,7 +2987,6 @@ class HubConnectionTest {
hubConnection.start().timeout(30, TimeUnit.SECONDS).blockingAwait();
assertTrue(hubConnection.getTransport() instanceof LongPollingTransport);
close.onComplete();
hubConnection.stop().timeout(30, TimeUnit.SECONDS).blockingAwait();
}