Skip to content

Commit 220f2da

Browse files
authored
Update RabbitMQ version and the test (#390)
* 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 220f2da

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
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.6"
44
}

Tests/FromToAMQPTests.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,17 @@ 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}");
170168

171-
Assert.Equal(binaryValue,
169+
// In this version https://github.com/rabbitmq/rabbitmq-server/pull/11715 increase utf8 scanning to 4096
170+
// that we compare the value
171+
172+
// between 3.13.0-beta.5 and 3.13.5 the value is converted to byte[]
173+
// the old test contains the binary value
174+
175+
var value =
176+
$"Alan Mathison Turing(1912 年 6 月 23 日 - 1954 年 6 月 7 日)是英国数学家、计算机科学家、逻辑学家、密码分析家、哲学家和理论生物学家。 [6] 图灵在理论计算机科学的发展中具有很大的影响力,用图灵机提供了算法和计算概念的形式化,可以被认为是通用计算机的模型。[7][8][9] 他被广泛认为是理论计算机科学和人工智能之父{i}";
177+
178+
Assert.Equal(value,
172179
message.ApplicationProperties["alan"]
173180
);
174181
Assert.Equal(i, message.ApplicationProperties["int"]);

0 commit comments

Comments
 (0)