优化
This commit is contained in:
@@ -70,8 +70,7 @@ class DirectEventClientTest {
|
||||
|
||||
private EventEnvelope event(String type) {
|
||||
var payload = new ObjectMapper().createObjectNode().put("businessNo", "test");
|
||||
return new EventEnvelope("00000000-0000-4000-8000-000000000009", type, 1, Instant.now(),
|
||||
RegionCode.OVERSEAS, RegionCode.CN, "1", "BUSINESS", "1", 1L, null,
|
||||
return new EventEnvelope("00000000-0000-4000-8000-000000000009", type, 1, Instant.now(), "1", "BUSINESS", "1", 1L, null,
|
||||
"trace", "correlation", null, payload,
|
||||
EventPayloadHash.sha256(EventPayloadCanonicalizer.canonicalize(payload)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user