Skip to content

Commit f92eb28

Browse files
committed
🐛 fix unit test
1 parent c213614 commit f92eb28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ func TestValidate(t *testing.T) {
2121
// fixture.RunBasic(t)
2222
// fixture.RunExtended(t)
2323

24-
2524
// No endpoint provided
2625
err := s.validate(&ovhDNSProviderConfig{}, false)
2726
if err == nil || err.Error() != "no endpoint provided in OVH config" {
@@ -82,7 +81,7 @@ func TestValidate(t *testing.T) {
8281
Endpoint: "ovh-eu",
8382
AuthenticationMethod: "foo",
8483
}, false)
85-
if err == nil || err.Error() != "invalid value for authentifaction method, allowed values: application, oauth2" {
84+
if err == nil || err.Error() != "invalid value for authentifaction method, allowed values: 'application' and 'oauth2'" {
8685
t.Errorf("expected invalid method error, got %v", err)
8786
}
8887

0 commit comments

Comments
 (0)