File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
projects/Test/Integration Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -70,18 +70,23 @@ public async Task TestQueuePurgeAsync()
70
70
[ Fact ]
71
71
public async Task TestBasicReturnAsync ( )
72
72
{
73
+ string routingKey = Guid . NewGuid ( ) . ToString ( ) ;
73
74
try
74
75
{
75
- await _channel . BasicPublishAsync ( exchange : string . Empty , routingKey : Guid . NewGuid ( ) . ToString ( ) ,
76
+ await _channel . BasicPublishAsync ( exchange : string . Empty , routingKey : routingKey ,
76
77
mandatory : true , body : GetRandomBody ( ) ) ;
77
78
}
78
79
catch ( PublishReturnException prex )
79
80
{
80
81
Assert . True ( prex . IsReturn ) ;
81
82
Assert . NotNull ( prex . Exchange ) ;
83
+ Assert . Equal ( string . Empty , prex . Exchange ) ;
82
84
Assert . NotNull ( prex . RoutingKey ) ;
85
+ Assert . Equal ( routingKey , prex . RoutingKey ) ;
83
86
Assert . NotEqual ( 0 , prex . ReplyCode ) ;
84
87
Assert . NotNull ( prex . ReplyText ) ;
88
+ Assert . Equal ( "NO_ROUTE" , prex . ReplyText ) ;
89
+
85
90
}
86
91
}
87
92
}
You can’t perform that action at this time.
0 commit comments