Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinw66 committed Feb 19, 2025
1 parent 9a2edef commit d08aa79
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

import org.apache.bigtop.manager.common.utils.ProjectPathUtils;

import org.apache.bigtop.manager.grpc.generated.TaskLogRequest;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -92,7 +93,7 @@ public void testTruncateLogFileFileDoesNotExist() throws IOException {

@Test
public void testIsTaskLogRequestTaskRequest() {
TaskLogRequest taskLogRequest = new TaskLogRequest();
TaskLogRequest taskLogRequest = TaskLogRequest.newBuilder().setTaskId(1L).build();

Boolean result = taskInterceptor.isTaskRequest(taskLogRequest);

Expand Down Expand Up @@ -129,10 +130,4 @@ public Long getTaskId() {
return 1L;
}
}

private static class TaskLogRequest {
public Long getTaskId() {
return 1L;
}
}
}

0 comments on commit d08aa79

Please sign in to comment.