Skip to content

Commit 9e677a4

Browse files
authored
FIX: Litt romsligere timeout på første beregningskall (#1478)
1 parent 70780dd commit 9e677a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/no/nav/foreldrepenger/autotest/klienter/fpkalkulus/KalkulusKlient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import static no.nav.foreldrepenger.autotest.klienter.JavaHttpKlient.send;
77

88
import java.net.http.HttpRequest;
9+
import java.time.Duration;
910

1011
import io.qameta.allure.Step;
1112
import no.nav.folketrygdloven.fpkalkulus.kontrakt.BeregnRequestDto;
@@ -54,6 +55,7 @@ public BeregningsgrunnlagDto hentGUIBeregningsgrunnlag(HentBeregningsgrunnlagGUI
5455

5556
public TilstandResponse kjørBeregning(BeregnRequestDto beregnRequestDto) {
5657
var request = requestMedInnloggetSaksbehandler(saksbehandlerRolle, KLIENT_ID)
58+
.timeout(Duration.ofSeconds(10))
5759
.uri(fromUri(BaseUriProvider.KALKULUS_BASE)
5860
.path(KALKULUS_BEREGN_URL)
5961
.build())

0 commit comments

Comments
 (0)