Skip to content

Commit

Permalink
chore: improve code doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sranka committed Jul 30, 2020
1 parent dce1d0a commit 0c14344
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions endpoints/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func TestEndpointService_cummulativeSecrets(t *testing.T) {
t.Errorf("secrets after creating 2nd endpoint = %v, want %v", len(secretKeys), 4)
}

// update 1st endpoint and validate secreats
// update 1st endpoint and validate secrets
const updatedSecretValue = "updatedSecVal"
endpoint1.Username.Value = strPtr(updatedSecretValue)
if _, err = endpointService.UpdateNotificationEndpoint(ctx, *endpoint1.ID, &endpoint1, *userID); err != nil {
Expand All @@ -145,7 +145,7 @@ func TestEndpointService_cummulativeSecrets(t *testing.T) {
t.Errorf("secret after updating 1st endpoint is not updated = %v, want %v", secretValue, updatedSecretValue)
}

// delete 1st endpoints and secreats, validate secrets
// delete 1st endpoints and secrets, validate secrets
var secretsToDelete []influxdb.SecretField
if secretsToDelete, _, err = endpointService.DeleteNotificationEndpoint(ctx, *endpoint1.ID); err != nil {
t.Fatal(err)
Expand All @@ -172,7 +172,7 @@ func TestEndpointService_cummulativeSecrets(t *testing.T) {
t.Fatal(err)
}
if len(secretKeys) != 0 {
t.Errorf("secrets after updating deleting 1st endpoint = %v, want %v", len(secretKeys), 2)
t.Errorf("secrets after deleting the 2nd endpoint = %v, want %v", len(secretKeys), 2)
}
}

Expand Down

0 comments on commit 0c14344

Please sign in to comment.