Skip to content

Instantly share code, notes, and snippets.

@stavro

stavro/error.txt Secret

Created April 1, 2016 00:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stavro/1ca541444558e35733b2449265558ce2 to your computer and use it in GitHub Desktop.
Save stavro/1ca541444558e35733b2449265558ce2 to your computer and use it in GitHub Desktop.
2) test send_reminder (SchedTest.AppointmentTest)
test/lib/sched/appointment_test.exs:148
** (exit) exited in: Ecto.Adapters.SQL.query(SchedWeb.Repo, "SELECT c0.\"id\", c0.\"message\", c0.\"number\", c0.\"awaiting_reply\", c0.\"flagged\", c0.\"reply\", c0.\"appointment_id\", c0.\"client_id\", c0.\"inserted_at\", c0.\"updated_at\" FROM \"confirmations\" AS c0 WHERE ((c0.\"number\" = $1) AND (c0.\"awaiting_reply\" = TRUE))", ["+18055555555"], [])
** (EXIT) :noconnect
stacktrace:
(ecto) lib/ecto/adapters/sql.ex:233: Ecto.Adapters.SQL.query/5
(ecto) lib/ecto/adapters/sql.ex:183: Ecto.Adapters.SQL.query!/5
(ecto) lib/ecto/adapters/sql.ex:481: Ecto.Adapters.SQL.execute/6
(ecto) lib/ecto/repo/queryable.ex:95: Ecto.Repo.Queryable.execute/5
(ecto) lib/ecto/repo/queryable.ex:15: Ecto.Repo.Queryable.all/4
(ecto) lib/ecto/repo/queryable.ex:44: Ecto.Repo.Queryable.one/4
(sched_web) web/sched/confirmation/actions/response.ex:8: Sched.Confirmation.Actions.Response.handle_response/2
test/lib/sched/appointment_test.exs:158: anonymous fn/1 in SchedTest.AppointmentTest.test send_reminder/1
(ecto) lib/ecto/pool.ex:292: Ecto.Pool.with_rollback/3
(ecto) lib/ecto/adapters/sql.ex:582: Ecto.Adapters.SQL.transaction/8
(ecto) lib/ecto/pool.ex:244: Ecto.Pool.outer_transaction/6
(ecto) lib/ecto/adapters/sql.ex:551: Ecto.Adapters.SQL.transaction/3
test/lib/sched/appointment_test.exs:148
@stavro
Copy link
Author

stavro commented Apr 1, 2016

And here's me running the exact same failing line outside of the test suite:

MIX_ENV=test iex -S mix
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

Interactive Elixir (1.2.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> Ecto.Adapters.SQL.query(SchedWeb.Repo, "SELECT c0.\"id\", c0.\"message\", c0.\"number\", c0.\"awaiting_reply\", c0.\"flagged\", c0.\"reply\", c0.\"appointment_id\", c0.\"client_id\", c0.\"inserted_at\", c0.\"updated_at\" FROM \"confirmations\" AS c0 WHERE ((c0.\"number\" = $1) AND (c0.\"awaiting_reply\" = TRUE))", ["+18055555555"], [])
{:ok,
 %{columns: ["id", "message", "number", "awaiting_reply", "flagged", "reply",
    "appointment_id", "client_id", "inserted_at", "updated_at"],
   command: :select, connection_id: 87226, num_rows: 0, rows: []}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment