Skip to content

Commit a29c908

Browse files
committed
fix test
1 parent 9434126 commit a29c908

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/java/com/redhat/labs/lodestar/models/ConfigMap.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import java.nio.file.attribute.FileTime;
99
import java.util.Optional;
1010

11+
import org.slf4j.Logger;
12+
import org.slf4j.LoggerFactory;
13+
1114
import lombok.AllArgsConstructor;
1215
import lombok.Builder;
1316
import lombok.Data;
@@ -18,6 +21,7 @@
1821
@NoArgsConstructor
1922
@AllArgsConstructor
2023
public class ConfigMap {
24+
private static final Logger LOGGER = LoggerFactory.getLogger(ConfigMap.class);
2125

2226
private Path path;
2327
private String filePath;
@@ -43,6 +47,7 @@ public boolean updateMountedFile() {
4347
content = Optional.of(new String(Files.readAllBytes(path), StandardCharsets.UTF_8));
4448
return true;
4549
} catch (IOException e) {
50+
LOGGER.error("Error updating mounted file %{} {} {} ", lastModifiedTime, path, filePath);
4651
content = Optional.empty();
4752
}
4853

@@ -68,6 +73,7 @@ private boolean isModified() {
6873
return true;
6974
}
7075
} catch (IOException e) {
76+
LOGGER.error("Error calculating isModified %{} {}", lastModifiedTime, path);
7177
return false;
7278
}
7379

src/test/java/com/redhat/labs/lodestar/mocks/MockGitLabService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public Response createProjectHook(Integer projectId, Hook hook) {
294294
return Response.status(Status.CREATED).build();
295295
}
296296

297-
return null;
297+
return Response.status(Status.INTERNAL_SERVER_ERROR).build();
298298
}
299299

300300
@Override

0 commit comments

Comments
 (0)