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 and annelo-msft committed Feb 17, 2021
1 parent d0f7248 commit ea6d9a8
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 ea6d9a8

Please sign in to comment.