Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Loggie
Commits
d0ad709b
Commit
d0ad709b
authored
2 years ago
by
ethfoo
Browse files
Options
Download
Email Patches
Plain Diff
Test: sort interceptors in TestMergeDefault
parent
75274978
fix-empty-pipeline-reload
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/core/reloader/reload.go
+0
-2
pkg/core/reloader/reload.go
test/configuration/pipeline_test.go
+9
-0
test/configuration/pipeline_test.go
with
9 additions
and
2 deletions
+9
-2
pkg/core/reloader/reload.go
+
0
-
2
View file @
d0ad709b
...
...
@@ -33,8 +33,6 @@ import (
"github.com/loggie-io/loggie/pkg/pipeline"
)
var
ErrOutOfReloadPeriod
=
errors
.
New
(
"out of reload period"
)
type
Reloader
struct
{
controller
*
control
.
Controller
...
...
This diff is collapsed.
Click to expand it.
test/configuration/pipeline_test.go
+
9
-
0
View file @
d0ad709b
...
...
@@ -13,6 +13,7 @@ import (
"github.com/loggie-io/loggie/pkg/sink/codec"
"github.com/loggie-io/loggie/pkg/util/yaml"
"github.com/stretchr/testify/assert"
"sort"
"testing"
"time"
)
...
...
@@ -117,6 +118,14 @@ pipelines:
},
}
sort
.
Slice
(
pipe
.
Pipelines
[
0
]
.
Interceptors
,
func
(
i
,
j
int
)
bool
{
return
pipe
.
Pipelines
[
0
]
.
Interceptors
[
i
]
.
Type
>
pipe
.
Pipelines
[
0
]
.
Interceptors
[
j
]
.
Type
})
sort
.
Slice
(
want
.
Pipelines
[
0
]
.
Interceptors
,
func
(
i
,
j
int
)
bool
{
return
want
.
Pipelines
[
0
]
.
Interceptors
[
i
]
.
Type
>
want
.
Pipelines
[
0
]
.
Interceptors
[
j
]
.
Type
})
assert
.
Equal
(
t
,
want
,
pipe
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help