Skip to content

Commit

Permalink
[Internal] API Version: Updates DefaultAPIVersion to v2019_10_14 to i…
Browse files Browse the repository at this point in the history
…ndicate merge support (#3015)
  • Loading branch information
ramarag authored Feb 9, 2022
1 parent 5c01524 commit 83d4d0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Microsoft.Azure.Cosmos/src/CosmosClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static CosmosClient()
#if PREVIEW
HttpConstants.Versions.CurrentVersion = HttpConstants.Versions.v2020_07_15;
#else
HttpConstants.Versions.CurrentVersion = HttpConstants.Versions.v2018_12_31;
HttpConstants.Versions.CurrentVersion = HttpConstants.Versions.v2019_10_14;
#endif
HttpConstants.Versions.CurrentVersionUTF8 = Encoding.UTF8.GetBytes(HttpConstants.Versions.CurrentVersion);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public void ApiVersionTest()
Assert.AreEqual(HttpConstants.Versions.v2020_07_15, HttpConstants.Versions.CurrentVersion);
CollectionAssert.AreEqual(Encoding.UTF8.GetBytes(HttpConstants.Versions.v2020_07_15), HttpConstants.Versions.CurrentVersionUTF8);
#else
Assert.AreEqual(HttpConstants.Versions.v2018_12_31, HttpConstants.Versions.CurrentVersion);
CollectionAssert.AreEqual(Encoding.UTF8.GetBytes(HttpConstants.Versions.v2018_12_31), HttpConstants.Versions.CurrentVersionUTF8);
Assert.AreEqual(HttpConstants.Versions.v2019_10_14, HttpConstants.Versions.CurrentVersion);
CollectionAssert.AreEqual(Encoding.UTF8.GetBytes(HttpConstants.Versions.v2019_10_14), HttpConstants.Versions.CurrentVersionUTF8);
#endif
}

Expand Down

0 comments on commit 83d4d0c

Please sign in to comment.