chore: fix typo
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
83fc8c67dc
commit
ef0e97a245
|
@ -11,7 +11,7 @@ type Sonarr struct {
|
||||||
publisher Publisher
|
publisher Publisher
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewSonaar(publisher Publisher) *Sonarr {
|
func NewSonarr(publisher Publisher) *Sonarr {
|
||||||
return &Sonarr{
|
return &Sonarr{
|
||||||
publisher: publisher,
|
publisher: publisher,
|
||||||
}
|
}
|
|
@ -36,7 +36,7 @@ func TestSonarr_Process(t *testing.T) {
|
||||||
|
|
||||||
payload := generateSonarrWebhookPayload(evType)
|
payload := generateSonarrWebhookPayload(evType)
|
||||||
|
|
||||||
err := service.NewSonaar(publisher).Process(context.Background(), payload)
|
err := service.NewSonarr(publisher).Process(context.Background(), payload)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
require.Equal(t, len(payload.Episodes), publisher.PublishCallCount())
|
require.Equal(t, len(payload.Episodes), publisher.PublishCallCount())
|
||||||
for i, ep := range payload.Episodes {
|
for i, ep := range payload.Episodes {
|
||||||
|
|
2
main.go
2
main.go
|
@ -106,7 +106,7 @@ func newSonarrService() (*service.Sonarr, error) {
|
||||||
return nil, fmt.Errorf(`os.Getenv("SONARR_NTFY_REQ_TIMEOUT"): %w`, err)
|
return nil, fmt.Errorf(`os.Getenv("SONARR_NTFY_REQ_TIMEOUT"): %w`, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
return service.NewSonaar(
|
return service.NewSonarr(
|
||||||
service.NewNtfy(
|
service.NewNtfy(
|
||||||
&http.Client{Timeout: parsedTimeout},
|
&http.Client{Timeout: parsedTimeout},
|
||||||
url,
|
url,
|
||||||
|
|
Reference in New Issue