Skip to content

Commit

Permalink
just test
Browse files Browse the repository at this point in the history
  • Loading branch information
uarlouski committed Nov 21, 2024
1 parent cb2a59e commit 7e67435
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ jobs:
run: |
export MITMPROXY_BINARY_PATH=$(type -aP mitmdump | xargs dirname )
./gradlew build -PMITMPROXY_BINARY_PATH="$MITMPROXY_BINARY_PATH"
- name: Unit tests
uses: actions/upload-artifact@v4
if: always()
with:
path: browserup-proxy-core/build/reports/tests
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.apache.commons.lang3.SystemUtils;
import org.awaitility.Awaitility;
import org.awaitility.core.ConditionTimeoutException;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -214,7 +213,7 @@ private void waitForReady() {
}
}

@NotNull
// @NotNull
private ArrayList<String> createCommand(int port, List<AbstractAddon> addons) {
ArrayList<String> command = new ArrayList<String>() {{
add(getMitmproxyBinaryPath());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public <T> T requestToAddonsManager(String addOnPath,
String contentType,
Class<T> responseClass) {
HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
.uri(buildRequestUrl(addOnPath, operation, queryParams))
.method(method, requestBody);
.uri(buildRequestUrl(addOnPath, operation, queryParams));

if (requestBody != null) {
requestBuilder.method(method, requestBody).header("Content-Type", contentType);
Expand Down

0 comments on commit 7e67435

Please sign in to comment.