Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions atomic-rpc-relayer-bridge/src/local-server.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import * as http from "http";
import axios, { type AxiosResponse } from "axios";
import axios, {
type AxiosResponse,
type InternalAxiosRequestConfig,
AxiosHeaders,
} from "axios";
import { createLocalBridgeHandler, startLocalServer } from "./local-server";

jest.mock("axios");
Expand All @@ -12,7 +16,8 @@ function mockRpcResponse(data: unknown): void {
status: 200,
statusText: "OK",
headers: {},
config: {},
// axios 1.x requires `headers` on InternalAxiosRequestConfig.
config: { headers: new AxiosHeaders() } as InternalAxiosRequestConfig,
};
mockedAxios.mockResolvedValue(response);
}
Expand Down
1 change: 0 additions & 1 deletion atomic-rpc-relayer-bridge/src/local-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export function createLocalBridgeHandler(options: LocalServerOptions = {}): {
);
}

const disableAtomicVerification = process.env.DISABLE_ATOMIC_VERIFICATION === "true";
const bridge = new AtomicRpcRelayerBridge({
endpoints: options.endpoints ?? defaultEndpoints(),
requireAtomicVerification: !disableAtomicVerification,
Expand Down
Loading