Skip to content

Commit

Permalink
Remove redundant URL definition
Browse files Browse the repository at this point in the history
  • Loading branch information
chansuke committed Feb 3, 2024
1 parent ce45ae1 commit c6f811f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scheduler/plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ wasm stack trace:
t.Run(tc.name, func(t *testing.T) {
guestURL := tc.guestURL
if guestURL == "" {
guestURL = test.URLTestPreFilterxtensions
guestURL = test.URLTestFilter
}

p, err := wasm.NewFromConfig(ctx, "wasm", wasm.PluginConfig{GuestURL: guestURL, Args: tc.args}, nil)
Expand Down Expand Up @@ -1497,7 +1497,7 @@ wasm stack trace:
t.Run(tc.name, func(t *testing.T) {
guestURL := tc.guestURL
if guestURL == "" {
guestURL = test.URLTestPreFilterxtensions
guestURL = test.URLTestFilter
}

p, err := wasm.NewFromConfig(ctx, "wasm", wasm.PluginConfig{GuestURL: guestURL, Args: tc.args}, nil)
Expand Down
2 changes: 0 additions & 2 deletions scheduler/test/testdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ var URLTestScoreExtensionsFromGlobal = localURL(pathWatTest("scoreextensions_fro

var URLTestHandle = localURL(pathTinyGoTest("handle"))

var URLTestPreFilterxtensions = localURL(pathTinyGoTest("filter"))

var URLTestPreFilterExtensionsFromGlobal = localURL(pathWatTest("prefilterextensions_from_global"))

//go:embed testdata/yaml/node.yaml
Expand Down

0 comments on commit c6f811f

Please sign in to comment.