Correct typo in error string (#2902)

This commit is contained in:
Frank 2016-10-11 17:56:02 +02:00 committed by Harshavardhana
parent fa8ea41cd9
commit a6357502c1
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ const (
// newJWT - returns new JWT object.
func newJWT(expiry time.Duration) (*JWT, error) {
if serverConfig == nil {
return nil, errors.New("Server not initialzed")
return nil, errors.New("Server not initialized")
}
// Save access, secret keys.

View File

@ -72,11 +72,11 @@ func TestNewJWT(t *testing.T) {
expectedErr error
}{
// Test non-existent config directory.
{path.Join(path1, "non-existent-dir"), false, nil, fmt.Errorf("Server not initialzed")},
{path.Join(path1, "non-existent-dir"), false, nil, fmt.Errorf("Server not initialized")},
// Test empty config directory.
{path2, false, nil, fmt.Errorf("Server not initialzed")},
{path2, false, nil, fmt.Errorf("Server not initialized")},
// Test empty config file.
{path3, false, nil, fmt.Errorf("Server not initialzed")},
{path3, false, nil, fmt.Errorf("Server not initialized")},
// Test initialized config file.
{path4, true, nil, nil},
// Test to read already created config file.