mirror of
https://github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin.git
synced 2026-07-21 03:28:59 +02:00
✨ handle isHealthy in the main function and log error became… (#84)
* ✨ handle isHealthy in the main function and log error became debug
* fix: lint
* fix: lint
This commit is contained in:
+8
-3
@@ -142,14 +142,19 @@ func Test_handleStreamCache(t *testing.T) {
|
||||
bouncer *Bouncer
|
||||
}
|
||||
tests := []struct {
|
||||
name string
|
||||
args args
|
||||
name string
|
||||
args args
|
||||
wantErr bool
|
||||
}{
|
||||
// TODO: Add test cases.
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
handleStreamCache(tt.args.bouncer)
|
||||
err := handleStreamCache(tt.args.bouncer)
|
||||
if (err != nil) != tt.wantErr {
|
||||
t.Errorf("handleStreamCache() error = %v, wantErr %v", err, tt.wantErr)
|
||||
return
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user