Skip to content

Commit

Permalink
[HMACAuthenticationPolicyTest] added new not null check for authValue (
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLai authored Nov 25, 2020
1 parent 256df13 commit 288ff39
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public async Task TestHMACPolicyProcess()

var expectedAuthHeader = "HMAC-SHA256 SignedHeaders=date;host;x-ms-content-sha256";
Assert.True(headers.TryGetValue("Authorization", out var authValue));
authValue = (authValue == null) ? "" : authValue;
Assert.True(authValue.Contains(expectedAuthHeader));
Assert.NotNull(authValue);
Assert.True(authValue!.Contains(expectedAuthHeader));
}
}
}

0 comments on commit 288ff39

Please sign in to comment.