Skip to content

Commit 288ff39

Browse files
authored
[HMACAuthenticationPolicyTest] added new not null check for authValue (#17178)
1 parent 256df13 commit 288ff39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/communication/Azure.Communication.Common/tests/Pipeline/HMACAuthenticationPolicyTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public async Task TestHMACPolicyProcess()
3030

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

0 commit comments

Comments
 (0)