Verified Commit 9e7d1ed1 authored by Pierre de Lacroix's avatar Pierre de Lacroix
Browse files

fix TransactionControllerTest

parent 67918ce9
Pipeline #265021566 failed with stages
in 18 minutes and 26 seconds
defmodule MatrixAppService.Event do
@moduledoc """
Struct for a Matrix event.
Ecto schema for a Matrix event.
"""
use Ecto.Schema
import Ecto.Changeset
......
......@@ -13,7 +13,7 @@ defmodule MatrixAppServiceWeb.V1.TransactionController do
adapter =
conn.private[:transaction_adapter] ||
MatrixAppServiceWeb.Endpoint.config(:transaction_adapter) ||
raise "MatrixAppService: config key room_adapter missing"
raise "MatrixAppService: missing config key: room_adapter"
# Enum.each(events, &create_event(&1, adapter))
Enum.each(events, fn event_params ->
......
......@@ -8,14 +8,14 @@ defmodule MatrixAppServiceWeb.TransactionControllerTest do
test "transactions are pushed", %{conn: conn} do
event = %{
"age" => 42,
"content" => 42,
"event_id" => 42,
"content" => %{},
"event_id" => "event_id",
"origin_server_ts" => 42,
"room_id" => 42,
"sender" => 42,
"type" => 42,
"unsigned" => 42,
"user_id" => 42
"room_id" => "room_id",
"sender" => "sender",
"type" => "type",
"unsigned" => %{},
"user_id" => "user_id"
}
assert capture_log(fn ->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment