Skip to content

Commit ea44fe2

Browse files
committed
add netpoolsize to tests
Signed-off-by: Amory Hoste <[email protected]>
1 parent c47a81b commit ea44fe2

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

ctriface/bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestBenchmarkStart(t *testing.T) {
5656
ctx, cancel := context.WithTimeout(namespaces.WithNamespace(context.Background(), namespaceName), testTimeout)
5757
defer cancel()
5858

59-
orch := NewOrchestrator("devmapper", "", WithTestModeOn(true), WithUPF(*isUPFEnabled))
59+
orch := NewOrchestrator("devmapper", "", 10, WithTestModeOn(true), WithUPF(*isUPFEnabled))
6060

6161
images := getAllImages()
6262
benchCount := 10

ctriface/failing_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func TestStartSnapStop(t *testing.T) {
5151
ctx, cancel := context.WithTimeout(namespaces.WithNamespace(context.Background(), namespaceName), testTimeout)
5252
defer cancel()
5353

54-
orch := NewOrchestrator("devmapper", "", WithTestModeOn(true))
54+
orch := NewOrchestrator("devmapper", "", 10, WithTestModeOn(true))
5555

5656
vmID := "2"
5757

ctriface/iface_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func TestPauseSnapResume(t *testing.T) {
6262
orch := NewOrchestrator(
6363
"devmapper",
6464
"",
65+
10,
6566
WithTestModeOn(true),
6667
WithUPF(*isUPFEnabled),
6768
WithLazyMode(*isLazyMode),
@@ -105,6 +106,7 @@ func TestStartStopSerial(t *testing.T) {
105106
orch := NewOrchestrator(
106107
"devmapper",
107108
"",
109+
10,
108110
WithTestModeOn(true),
109111
WithUPF(*isUPFEnabled),
110112
WithLazyMode(*isLazyMode),
@@ -139,6 +141,7 @@ func TestPauseResumeSerial(t *testing.T) {
139141
orch := NewOrchestrator(
140142
"devmapper",
141143
"",
144+
10,
142145
WithTestModeOn(true),
143146
WithUPF(*isUPFEnabled),
144147
WithLazyMode(*isLazyMode),
@@ -180,6 +183,7 @@ func TestStartStopParallel(t *testing.T) {
180183
orch := NewOrchestrator(
181184
"devmapper",
182185
"",
186+
10,
183187
WithTestModeOn(true),
184188
WithUPF(*isUPFEnabled),
185189
WithLazyMode(*isLazyMode),
@@ -239,6 +243,7 @@ func TestPauseResumeParallel(t *testing.T) {
239243
orch := NewOrchestrator(
240244
"devmapper",
241245
"",
246+
10,
242247
WithTestModeOn(true),
243248
WithUPF(*isUPFEnabled),
244249
WithLazyMode(*isLazyMode),

ctriface/manual_cleanup_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func TestSnapLoad(t *testing.T) {
5656
orch := NewOrchestrator(
5757
"devmapper",
5858
"",
59+
10,
5960
WithTestModeOn(true),
6061
WithUPF(*isUPFEnabled),
6162
WithLazyMode(*isLazyMode),
@@ -106,6 +107,7 @@ func TestSnapLoadMultiple(t *testing.T) {
106107
orch := NewOrchestrator(
107108
"devmapper",
108109
"",
110+
10,
109111
WithTestModeOn(true),
110112
WithUPF(*isUPFEnabled),
111113
WithLazyMode(*isLazyMode),
@@ -168,6 +170,7 @@ func TestParallelSnapLoad(t *testing.T) {
168170
orch := NewOrchestrator(
169171
"devmapper",
170172
"",
173+
10,
171174
WithTestModeOn(true),
172175
WithUPF(*isUPFEnabled),
173176
WithLazyMode(*isLazyMode),
@@ -230,6 +233,7 @@ func TestParallelPhasedSnapLoad(t *testing.T) {
230233
orch := NewOrchestrator(
231234
"devmapper",
232235
"",
236+
10,
233237
WithTestModeOn(true),
234238
WithUPF(*isUPFEnabled),
235239
WithLazyMode(*isLazyMode),

ctriface/orch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (o *Orchestrator) setupCloseHandler() {
156156
// Cleanup Removes the bridges created by the VM pool's tap manager
157157
// Cleans up snapshots directory
158158
func (o *Orchestrator) Cleanup() {
159-
o.vmPool.RemoveBridges()
159+
o.vmPool.CleanupNetwork()
160160
if err := os.RemoveAll(o.snapshotsDir); err != nil {
161161
log.Panic("failed to delete snapshots dir", err)
162162
}

0 commit comments

Comments
 (0)