Skip to content

Commit bba7218

Browse files
committed
update test
1 parent 8aeee07 commit bba7218

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/integration/tools/atlas/clusters.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ describeWithAtlas("clusters", (integration) => {
8484
it("should create a free cluster and add current IP to access list", async () => {
8585
const projectId = getProjectId();
8686
const session = integration.mcpServer().session;
87-
const ipInfo = await session.apiClient.getIpInfo();
8887

8988
const response = await integration.mcpClient().callTool({
9089
name: "atlas-create-free-cluster",
@@ -102,7 +101,7 @@ describeWithAtlas("clusters", (integration) => {
102101
const accessList = await session.apiClient.listProjectIpAccessLists({
103102
params: { path: { groupId: projectId } },
104103
});
105-
const found = accessList.results?.some((entry) => entry.ipAddress === ipInfo.currentIpv4Address);
104+
const found = accessList.results?.some((entry) => entry.ipAddress === getIpAddress());
106105
expect(found).toBe(true);
107106
});
108107
});

0 commit comments

Comments
 (0)