-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f665ae6
commit be52e29
Showing
2 changed files
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,11 +56,12 @@ describe("Configuration loader", function() | |
end) | ||
it("loads custom plugins", function() | ||
local conf = assert(conf_loader(nil, { | ||
custom_plugins = "hello-world,my-plugin" | ||
custom_plugins = "hello-world,my-plugin, another-one" | ||
})) | ||
assert.is_nil(conf.custom_plugins) | ||
assert.True(conf.plugins["hello-world"]) | ||
assert.True(conf.plugins["my-plugin"]) | ||
assert.True(conf.plugins["another-one"]) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
subnetmarco
Author
Member
|
||
end) | ||
it("extracts ports and listen ips from proxy_listen/admin_listen", function() | ||
local conf = assert(conf_loader()) | ||
|
That should be a different test? This test is that we load
custom_plugins
. That test we now want is if we also strip their names. This is asserting 2 behaviors in the same test.