Skip to content

Commit 093f57f

Browse files
fix: test cases
1 parent c3f9b0a commit 093f57f

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

projects/distributed-tracing/src/shared/dashboard/data/graphql/waterfall/trace-waterfall-data-source.model.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ describe('Trace Waterfall data source model', () => {
9292
}),
9393
expect.objectContaining({
9494
name: 'traceId'
95+
}),
96+
expect.objectContaining({
97+
name: 'errorCount'
9598
})
9699
]
97100
}
@@ -149,6 +152,9 @@ describe('Trace Waterfall data source model', () => {
149152
}),
150153
expect.objectContaining({
151154
name: 'traceId'
155+
}),
156+
expect.objectContaining({
157+
name: 'errorCount'
152158
})
153159
]
154160
}

projects/distributed-tracing/src/shared/dashboard/widgets/waterfall/waterfall/waterfall-chart.component.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ describe('Waterfall Chart component', () => {
3030
requestBody: 'Request Body',
3131
responseHeaders: {},
3232
responseBody: 'Response Body',
33-
tags: {}
33+
tags: {},
34+
errorCount: 0
3435
},
3536
{
3637
id: 'second-id',
@@ -50,7 +51,8 @@ describe('Waterfall Chart component', () => {
5051
requestBody: '',
5152
responseHeaders: {},
5253
responseBody: '',
53-
tags: {}
54+
tags: {},
55+
errorCount: 0
5456
},
5557
{
5658
id: 'third-id',
@@ -70,7 +72,8 @@ describe('Waterfall Chart component', () => {
7072
requestBody: '',
7173
responseHeaders: {},
7274
responseBody: '',
73-
tags: {}
75+
tags: {},
76+
errorCount: 0
7477
}
7578
];
7679

projects/observability/src/shared/dashboard/data/graphql/waterfall/api-trace-waterfall-data-source.model.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ describe('Api Trace Waterfall data source model', () => {
9898
}),
9999
expect.objectContaining({
100100
name: 'type'
101+
}),
102+
expect.objectContaining({
103+
name: 'errorCount'
101104
})
102105
]
103106
}
@@ -156,6 +159,9 @@ describe('Api Trace Waterfall data source model', () => {
156159
}),
157160
expect.objectContaining({
158161
name: 'type'
162+
}),
163+
expect.objectContaining({
164+
name: 'errorCount'
159165
})
160166
]
161167
}

0 commit comments

Comments
 (0)