From 9e8bad3988c1fec2e545898d529446f7b93e537b Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 18 Jun 2021 12:00:05 +0300 Subject: - Rework finished Signed-off-by: Valery Piashchynski --- plugins/websockets/origin_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/websockets/origin_test.go') diff --git a/plugins/websockets/origin_test.go b/plugins/websockets/origin_test.go index ec6e1960..bbc49bbb 100644 --- a/plugins/websockets/origin_test.go +++ b/plugins/websockets/origin_test.go @@ -9,6 +9,7 @@ import ( func TestConfig_Origin(t *testing.T) { cfg := &Config{ AllowedOrigin: "*", + Broker: "any", } err := cfg.InitDefault() @@ -28,6 +29,7 @@ func TestConfig_Origin(t *testing.T) { func TestConfig_OriginWildCard(t *testing.T) { cfg := &Config{ AllowedOrigin: "https://*my.site.com", + Broker: "any", } err := cfg.InitDefault() @@ -50,6 +52,7 @@ func TestConfig_OriginWildCard(t *testing.T) { func TestConfig_OriginWildCard2(t *testing.T) { cfg := &Config{ AllowedOrigin: "https://my.*.com", + Broker: "any", } err := cfg.InitDefault() -- cgit v1.2.3