Skip to content

Update RabbitMQ version and the test #390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"erlang": "26.1.2",
"rabbitmq": "3.13.0"
"rabbitmq": "3.13.6"
}
13 changes: 10 additions & 3 deletions Tests/FromToAMQPTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,17 @@ public async void Amqp10ShouldReadTheAmqp019Properties()
// https://github.com/rabbitmq/rabbitmq-server/pull/5077
// In this version the long string are not converted to string but to byte[]
// reason why we changed this test starting from the ci with RabbitMQ version >= 3.13.0-beta.5
var binaryValue = Encoding.UTF8.GetBytes(
$"Alan Mathison Turing(1912 年 6 月 23 日 - 1954 年 6 月 7 日)是英国数学家、计算机科学家、逻辑学家、密码分析家、哲学家和理论生物学家。 [6] 图灵在理论计算机科学的发展中具有很大的影响力,用图灵机提供了算法和计算概念的形式化,可以被认为是通用计算机的模型。[7][8][9] 他被广泛认为是理论计算机科学和人工智能之父{i}");

Assert.Equal(binaryValue,
// In this version https://github.com/rabbitmq/rabbitmq-server/pull/11715 increase utf8 scanning to 4096
// that we compare the value

// between 3.13.0-beta.5 and 3.13.5 the value is converted to byte[]
// the old test contains the binary value

var value =
$"Alan Mathison Turing(1912 年 6 月 23 日 - 1954 年 6 月 7 日)是英国数学家、计算机科学家、逻辑学家、密码分析家、哲学家和理论生物学家。 [6] 图灵在理论计算机科学的发展中具有很大的影响力,用图灵机提供了算法和计算概念的形式化,可以被认为是通用计算机的模型。[7][8][9] 他被广泛认为是理论计算机科学和人工智能之父{i}";

Assert.Equal(value,
message.ApplicationProperties["alan"]
);
Assert.Equal(i, message.ApplicationProperties["int"]);
Expand Down