H-337: fix Web Channel availability and realtime delivery (#60)
* H-337: fix Web Channel availability and realtime delivery * fix(widget): preserve realtime sender and activity contracts * fix(widget): keep realtime sender payloads consistent * fix(widget): make public message persistence atomic * fix(inbox): keep availability projection out of schema --------- Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
@@ -86,17 +86,6 @@ func TestConfig_InvalidWebsiteToken_Cov4(t *testing.T) {
|
||||
assert.Equal(t, http.StatusNotFound, w.Code)
|
||||
}
|
||||
|
||||
func TestConfig_WithEventPublisher_Cov4(t *testing.T) {
|
||||
db, router, handler := setupWidgetHandlerTest(t)
|
||||
seedWidgetHandlerData(t, db)
|
||||
pub := &recordingWidgetEventPublisher{}
|
||||
handler.WithEventPublisher(pub)
|
||||
w := httptest.NewRecorder()
|
||||
req, _ := http.NewRequest("POST", "/api/v1/widget/config?website_token=handler_ws_token_123", nil)
|
||||
router.ServeHTTP(w, req)
|
||||
assert.Equal(t, http.StatusOK, w.Code)
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// SendMessage — edge cases
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user