Fixed multichannel bug. (#737)

* Fixed multichannel bug.

* Resolved some comments.
This commit is contained in:
Kan Tang 2020-10-11 20:48:48 -07:00 committed by GitHub
parent 6ae0c0daac
commit 582377fc1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 410 additions and 420 deletions

View File

@ -148,6 +148,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
ret.Cors = std::move(result->Cors);
ret.HourMetrics = std::move(result->HourMetrics);
ret.MinuteMetrics = std::move(result->MinuteMetrics);
ret.Protocol = std::move(result->Protocol);
return Azure::Core::Response<StorageServiceProperties>(
std::move(ret), result.ExtractRawResponse());
}

View File

@ -146,6 +146,8 @@ namespace Azure { namespace Storage { namespace Test {
TEST_F(FileShareServiceClientTest, SetProperties)
{
auto properties = *m_fileShareServiceClient->GetProperties();
// Has to remove before set, otherwise would return failure.
properties.Protocol = Core::Nullable<Files::Shares::ShareProtocolSettings>();
auto originalProperties = properties;
properties.HourMetrics.Enabled = true;