Skip to content

Commit

Permalink
loader: remove unnecessary global variable mangling from test
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
  • Loading branch information
lmb committed May 15, 2024
1 parent 409e8be commit ded9520
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/datapath/loader/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"github.com/stretchr/testify/require"
"github.com/vishvananda/netlink"

"github.com/cilium/cilium/pkg/datapath/linux/config"
"github.com/cilium/cilium/pkg/datapath/loader/metrics"
"github.com/cilium/cilium/pkg/datapath/tables"
"github.com/cilium/cilium/pkg/defaults"
Expand Down Expand Up @@ -319,14 +318,8 @@ func TestSubstituteConfiguration(t *testing.T) {
ep := testutils.NewTestEndpoint()
initEndpoint(t, &ep)

option.Config.DryMode = true
defer func() {
option.Config.DryMode = false
}()

l := newTestLoader(t)
stats := &metrics.SpanStat{}
l.templateCache = newObjectCache(&config.HeaderfileWriter{}, nil, t.TempDir())
if err := l.CompileOrLoad(ctx, &ep, stats); err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit ded9520

Please sign in to comment.