Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 41ff098

Browse files
committed
Fix test
1 parent b8a57d5 commit 41ff098

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/epam/reportportal/cucumber/LaunchSystemAttributesTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.epam.reportportal.service.ReportPortalClient;
66
import com.epam.ta.reportportal.ws.model.attribute.ItemAttributesRQ;
77
import com.epam.ta.reportportal.ws.model.launch.StartLaunchRQ;
8+
import com.epam.ta.reportportal.ws.model.launch.StartLaunchRS;
89
import io.reactivex.Maybe;
910
import org.junit.jupiter.api.BeforeAll;
1011
import org.junit.jupiter.api.BeforeEach;
@@ -60,7 +61,8 @@ protected ReportPortal buildReportPortal() {
6061
@Test
6162
public void shouldRetrieveSystemAttributes() {
6263
when(reportPortalClient.startLaunch(any(StartLaunchRQ.class))).then(t -> Maybe.create(emitter -> {
63-
emitter.onSuccess("launchId");
64+
StartLaunchRS rs = new StartLaunchRS("launchId", 1L);
65+
emitter.onSuccess(rs);
6466
emitter.onComplete();
6567
}).cache());
6668

0 commit comments

Comments
 (0)