Skip to content

Commit

Permalink
fixed some misspelled words
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendrixMSFT committed Nov 11, 2020
1 parent f26dc90 commit 5c7bec0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sdk/azidentity/azidentity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ func Test_AuthorityHost_Parse(t *testing.T) {
func Test_SetEnvAuthorityHost(t *testing.T) {
err := os.Setenv("AZURE_AUTHORITY_HOST", envHostString)
defer func() {
// Unset that host environment vairable to avoid other tests failed.
// Unset that host environment variable to avoid other tests failed.
err = os.Unsetenv("AZURE_AUTHORITY_HOST")
if err != nil {
t.Fatalf("Unexpected error when unset environment vairable: %v", err)
t.Fatalf("Unexpected error when unset environment variable: %v", err)
}
}()
if err != nil {
Expand All @@ -38,17 +38,17 @@ func Test_SetEnvAuthorityHost(t *testing.T) {
t.Fatal(err)
}
if authorityHost != envHostString {
t.Fatalf("Unexpected error when get host from environment vairable: %v", err)
t.Fatalf("Unexpected error when get host from environment variable: %v", err)
}
}

func Test_CustomAuthorityHost(t *testing.T) {
err := os.Setenv("AZURE_AUTHORITY_HOST", envHostString)
defer func() {
// Unset that host environment vairable to avoid other tests failed.
// Unset that host environment variable to avoid other tests failed.
err = os.Unsetenv("AZURE_AUTHORITY_HOST")
if err != nil {
t.Fatalf("Unexpected error when unset environment vairable: %v", err)
t.Fatalf("Unexpected error when unset environment variable: %v", err)
}
}()
if err != nil {
Expand All @@ -60,7 +60,7 @@ func Test_CustomAuthorityHost(t *testing.T) {
}
// env takes priority
if authorityHost != envHostString {
t.Fatalf("Unexpected host when get host from environment vairable: %v", authorityHost)
t.Fatalf("Unexpected host when get host from environment variable: %v", authorityHost)
}
}

Expand Down

0 comments on commit 5c7bec0

Please sign in to comment.