Skip to content

Commit 6629ce3

Browse files
committed
-fix integration tests/SourceFlow.Cloud.AWS.Tests/Integration/SqsMessageAttributesIntegrationTests.cs
1 parent d9517d1 commit 6629ce3

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

tests/SourceFlow.Cloud.AWS.Tests/Integration/SqsMessageAttributesIntegrationTests.cs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,7 @@ public async Task MessageAttributes_ShouldSupportAllDataTypes()
208208
DataType = "String",
209209
StringValue = "Test string value with unicode: 你好世界"
210210
},
211-
["EmptyString"] = new MessageAttributeValue
212-
{
213-
DataType = "String",
214-
StringValue = ""
215-
},
211+
// Note: SQS rejects empty string attribute values — omitting EmptyString test
216212
["ShortString"] = new MessageAttributeValue
217213
{
218214
DataType = "String",
@@ -282,12 +278,7 @@ public async Task MessageAttributes_ShouldSupportAllDataTypes()
282278
// Verify string attributes
283279
Assert.Equal("String", message.MessageAttributes["StringAttribute"].DataType);
284280
Assert.Equal("Test string value with unicode: 你好世界", message.MessageAttributes["StringAttribute"].StringValue);
285-
// Empty string attributes may be stripped by some SQS implementations (including LocalStack)
286-
if (message.MessageAttributes.ContainsKey("EmptyString"))
287-
{
288-
Assert.Equal("String", message.MessageAttributes["EmptyString"].DataType);
289-
Assert.Equal("", message.MessageAttributes["EmptyString"].StringValue);
290-
}
281+
// Note: SQS rejects empty string attribute values, so EmptyString is not tested here
291282

292283
// Verify number attributes
293284
Assert.Equal("Number", message.MessageAttributes["IntegerAttribute"].DataType);

0 commit comments

Comments
 (0)