-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.6.2024.1004 支持RocketMQ v5.3,在公网测试通过。默认内网broker地址替换为公网地址。
- Loading branch information
Showing
9 changed files
with
162 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Linq; | ||
using NewLife; | ||
using NewLife.Log; | ||
using NewLife.RocketMQ; | ||
using Xunit; | ||
|
||
// 所有测试用例放入一个汇编级集合,除非单独指定Collection特性 | ||
[assembly: CollectionBehavior(CollectionBehavior.CollectionPerAssembly)] | ||
|
||
namespace XUnitTestRocketMQ; | ||
|
||
[Collection("Basic")] | ||
public class BasicTest | ||
{ | ||
private static MqSetting _config; | ||
public static MqSetting GetConfig() | ||
{ | ||
if (_config != null) return _config; | ||
lock (typeof(BasicTest)) | ||
{ | ||
if (_config != null) return _config; | ||
|
||
var set = MqSetting.Current; | ||
if (set.IsNew) | ||
{ | ||
set.NameServer = "rocketmq.newlifex.com:9876"; | ||
set.Save(); | ||
} | ||
|
||
XTrace.WriteLine("RocketMQ配置:{0}", set.NameServer); | ||
|
||
return _config = set; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.