From 6440aacdb802c691c02f416779b883d419acb416 Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Tue, 10 Mar 2020 15:40:17 -0500 Subject: [PATCH] Formatting updates --- farmbot_ext/test/farmbot_ext/amqp/auto_sync_channel_test.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/farmbot_ext/test/farmbot_ext/amqp/auto_sync_channel_test.exs b/farmbot_ext/test/farmbot_ext/amqp/auto_sync_channel_test.exs index 3e39457e..c40b3c7b 100644 --- a/farmbot_ext/test/farmbot_ext/amqp/auto_sync_channel_test.exs +++ b/farmbot_ext/test/farmbot_ext/amqp/auto_sync_channel_test.exs @@ -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