Formatting updates

pull/1168/head
Rick Carlino 2020-03-10 15:40:17 -05:00
parent f8b36dd6a9
commit 6440aacdb8
1 changed files with 3 additions and 1 deletions

View File

@ -145,12 +145,14 @@ defmodule AutoSyncChannelTest do
# We need the process to be preloaded for these tests to work:
%{preloaded: true} = AutoSyncChannel.network_status(pid)
send(pid, {:basic_deliver, payload, %{routing_key: key}})
expect(FarmbotExt.AMQP.AutoSyncAssetHandler, :handle_asset, fn (kind, id, body) ->
expect(FarmbotExt.AMQP.AutoSyncAssetHandler, :handle_asset, fn kind, id, body ->
assert kind == "Device"
assert id == 46
assert body == %{"name" => "This is my bot"}
:ok
end)
Process.sleep(1000)
end
end