Skip to content

Commit 669efe4

Browse files
committed
fix unit-test
Signed-off-by: Mohamed Mahmoud <[email protected]>
1 parent 1e6673b commit 669efe4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

web/src/utils/__tests__/flows.spec.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ describe('mergeFlowReporters', () => {
7676
SrcAddr: '10.0.0.1',
7777
DstAddr: '10.0.0.2',
7878
IfDirections: [IfDirection.Ingress, IfDirection.Egress],
79-
Interfaces: ['eth0', 'abcd']
79+
Interfaces: ['eth0', 'abcd'],
80+
Udns: ['udn1', 'udn2']
8081
} as Fields,
8182
labels: { FlowDirection: FlowDirection.Ingress }
8283
},
@@ -86,7 +87,8 @@ describe('mergeFlowReporters', () => {
8687
SrcAddr: '10.0.0.1',
8788
DstAddr: '10.0.0.2',
8889
IfDirections: [IfDirection.Ingress],
89-
Interfaces: ['genev']
90+
Interfaces: ['genev'],
91+
Udns: ['udn3']
9092
} as Fields,
9193
labels: { FlowDirection: FlowDirection.Egress }
9294
}
@@ -99,7 +101,8 @@ describe('mergeFlowReporters', () => {
99101
SrcAddr: '10.0.0.1',
100102
DstAddr: '10.0.0.2',
101103
IfDirections: [IfDirection.Ingress, IfDirection.Egress, IfDirection.Ingress],
102-
Interfaces: ['eth0', 'abcd', 'genev']
104+
Interfaces: ['eth0', 'abcd', 'genev'],
105+
Udns: ['udn1', 'udn2', 'udn3']
103106
} as Fields,
104107
labels: { FlowDirection: FlowDirection.Ingress }
105108
});

0 commit comments

Comments
 (0)