Skip to content

Commit 0d8752a

Browse files
fix error messages
1 parent 33a8e96 commit 0d8752a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Ydb.Sdk/tests/Topic/WriterUnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public async Task Initialize_WhenNotSupportedCodec_ThrowWriterExceptionOnWriteAs
311311
using var writer = new WriterBuilder<long>(_mockIDriver.Object, "/topic-7")
312312
{ ProducerId = "producerId", Codec = Codec.Raw }.Build();
313313

314-
Assert.Equal("Topic[Path=\"/topic\"] is not supported codec: Raw",
314+
Assert.Equal("Topic[Path=\"/topic-7\"] is not supported codec: Raw",
315315
(await Assert.ThrowsAsync<WriterException>(() => writer.WriteAsync(123L))).Message);
316316

317317
// check not attempt repeated!!!
@@ -718,7 +718,7 @@ public async Task WriteAsync_WhenWriterIsDisposed_ThrowWriterException()
718718
{ ProducerId = "producerId" }.Build();
719719
writer.Dispose();
720720

721-
Assert.Equal("Writer[TopicPath: /topic, ProducerId: producerId, Codec: Raw] is disposed",
721+
Assert.Equal("Writer[TopicPath: /topic-14, ProducerId: producerId, Codec: Raw] is disposed",
722722
(await Assert.ThrowsAsync<WriterException>(() => writer.WriteAsync("abacaba"))).Message);
723723
}
724724

0 commit comments

Comments
 (0)