diff --git a/test/towerops/profiles/profile_watcher_test.exs b/test/towerops/profiles/profile_watcher_test.exs index 189aa7fe..e09e97fa 100644 --- a/test/towerops/profiles/profile_watcher_test.exs +++ b/test/towerops/profiles/profile_watcher_test.exs @@ -81,7 +81,12 @@ defmodule Towerops.Profiles.ProfileWatcherTest do describe "GenServer init/handle_info" do test "init/1 returns :ok with a state map" do assert {:ok, state} = ProfileWatcher.init([]) - assert map_size(state) > 0 + + if Code.ensure_loaded?(FileSystem) do + assert map_size(state) > 0 + else + assert state == %{} + end end test "handles :stop file_event without crashing" do