Skip to content

Commit f5c9a76

Browse files
committed
Update RabbitMQ version and the test
Update the test conversion from amqp 091 to stream due of rabbitmq/rabbitmq-server#11715 Signed-off-by: Gabriele Santomaggio <[email protected]>
1 parent 477ac16 commit f5c9a76

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.ci/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"erlang": "26.1.2",
3-
"rabbitmq": "3.13.0"
3+
"rabbitmq": "3.13.16"
44
}

Tests/FromToAMQPTests.cs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,19 @@ public async void Amqp10ShouldReadTheAmqp019Properties()
165165
// https://github.com/rabbitmq/rabbitmq-server/pull/5077
166166
// In this version the long string are not converted to string but to byte[]
167167
// reason why we changed this test starting from the ci with RabbitMQ version >= 3.13.0-beta.5
168-
var binaryValue = Encoding.UTF8.GetBytes(
169-
$"Alan Mathison Turing(1912 年 6 月 23 日 - 1954 年 6 月 7 日)是英国数学家、计算机科学家、逻辑学家、密码分析家、哲学家和理论生物学家。 [6] 图灵在理论计算机科学的发展中具有很大的影响力,用图灵机提供了算法和计算概念的形式化,可以被认为是通用计算机的模型。[7][8][9] 他被广泛认为是理论计算机科学和人工智能之父{i}");
170-
171-
Assert.Equal(binaryValue,
168+
169+
170+
171+
// In this version https://github.com/rabbitmq/rabbitmq-server/pull/11715 increase utf8 scanning to 4096
172+
// that we compare the value
173+
174+
// between 3.13.0-beta.5 and 3.13.5 the value is converted to byte[]
175+
// the old test contains the binary value
176+
177+
var value =
178+
$"Alan Mathison Turing(1912 年 6 月 23 日 - 1954 年 6 月 7 日)是英国数学家、计算机科学家、逻辑学家、密码分析家、哲学家和理论生物学家。 [6] 图灵在理论计算机科学的发展中具有很大的影响力,用图灵机提供了算法和计算概念的形式化,可以被认为是通用计算机的模型。[7][8][9] 他被广泛认为是理论计算机科学和人工智能之父{i}";
179+
180+
Assert.Equal(value,
172181
message.ApplicationProperties["alan"]
173182
);
174183
Assert.Equal(i, message.ApplicationProperties["int"]);

0 commit comments

Comments
 (0)