Skip to content

Commit 5e865af

Browse files
committed
adding a sleep
1 parent 0d899eb commit 5e865af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/lambdatest/jenkins/freestyle/report/AppAutomationReportBuildAction.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public void generateLambdaTestAppAutomationReport() {
3838
byte[] authEncBytes = Base64.getEncoder().encode(authString.getBytes());
3939
String authStringEnc = new String(authEncBytes);
4040
try {
41+
// Add a 5-second sleep
42+
Thread.sleep(5000);
4143
URL buildUrl = new URL(Constant.AppAutomationReport.BUILD_INFO_URL);
4244
URLConnection buildUrlConnection = buildUrl.openConnection();
4345
buildUrlConnection.setRequestProperty("Authorization", "Basic " + authStringEnc);
@@ -125,7 +127,9 @@ public void generateLambdaTestAppAutomationReport() {
125127
} catch (IOException e) {
126128
logger.warning("IOException : " + e.getMessage());
127129
e.printStackTrace();
128-
}
130+
} catch (InterruptedException e1) {
131+
e1.printStackTrace();
132+
}
129133
}
130134

131135
public List<JSONObject> getResult() {

0 commit comments

Comments
 (0)