Skip to content

Commit 0302d3b

Browse files
committed
fix tool name in accuracy tests
1 parent da3c3e3 commit 0302d3b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/tools/atlas/read/getPerformanceAdvisor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export class GetPerformanceAdvisorTool extends AtlasToolBase {
8282
dropIndexSuggestionsResult.value?.hiddenIndexes &&
8383
dropIndexSuggestionsResult.value?.redundantIndexes &&
8484
dropIndexSuggestionsResult.value?.unusedIndexes &&
85-
dropIndexSuggestionsResult.value.hiddenIndexes.length > 0 &&
86-
dropIndexSuggestionsResult.value.redundantIndexes.length > 0 &&
87-
dropIndexSuggestionsResult.value.unusedIndexes.length > 0;
85+
(dropIndexSuggestionsResult.value.hiddenIndexes.length > 0 ||
86+
dropIndexSuggestionsResult.value.redundantIndexes.length > 0 ||
87+
dropIndexSuggestionsResult.value.unusedIndexes.length > 0);
8888
const hasSlowQueryLogs =
8989
slowQueryLogsResult.status === "fulfilled" &&
9090
slowQueryLogsResult.value?.slowQueryLogs &&

tests/accuracy/listPerformanceAdvisor.test.ts renamed to tests/accuracy/getPerformanceAdvisor.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const mockedTools = {
2323
],
2424
};
2525
},
26-
"atlas-list-performance-advisor": (): CallToolResult => {
26+
"atlas-get-performance-advisor": (): CallToolResult => {
2727
return {
2828
content: [
2929
{
@@ -51,7 +51,7 @@ describeAccuracyTests([
5151
},
5252
},
5353
{
54-
toolName: "atlas-list-performance-advisor",
54+
toolName: "atlas-get-performance-advisor",
5555
parameters: {
5656
projectId: "mflix",
5757
clusterName: "mflix-cluster",
@@ -76,7 +76,7 @@ describeAccuracyTests([
7676
},
7777
},
7878
{
79-
toolName: "atlas-list-performance-advisor",
79+
toolName: "atlas-get-performance-advisor",
8080
parameters: {
8181
projectId: "mflix",
8282
clusterName: "mflix-cluster",
@@ -101,7 +101,7 @@ describeAccuracyTests([
101101
},
102102
},
103103
{
104-
toolName: "atlas-list-performance-advisor",
104+
toolName: "atlas-get-performance-advisor",
105105
parameters: {
106106
projectId: "mflix",
107107
clusterName: "mflix-cluster",
@@ -128,7 +128,7 @@ describeAccuracyTests([
128128
},
129129
},
130130
{
131-
toolName: "atlas-list-performance-advisor",
131+
toolName: "atlas-get-performance-advisor",
132132
parameters: {
133133
projectId: "mflix",
134134
clusterName: "mflix-cluster",
@@ -153,7 +153,7 @@ describeAccuracyTests([
153153
},
154154
},
155155
{
156-
toolName: "atlas-list-performance-advisor",
156+
toolName: "atlas-get-performance-advisor",
157157
parameters: {
158158
projectId: "mflix",
159159
clusterName: "mflix-cluster",

0 commit comments

Comments
 (0)