Skip to content

Commit 64a9e07

Browse files
committed
Fix test warnings
1 parent 20b2465 commit 64a9e07

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/beamchmark/formatters/html_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ defmodule Beamchmark.Formatters.HTMLTest do
9595

9696
assert {:ok, statistics} = Task.await(cpu_task, :infinity)
9797
result = Templates.format_average_cpu_usage(statistics.cpu_snapshots)
98-
assert true == not is_nil(result)
98+
assert is_map(result)
9999
end
100100

101101
test "format_cpu_usage_by_core/1 runs and doesn't return nil" do
@@ -107,7 +107,7 @@ defmodule Beamchmark.Formatters.HTMLTest do
107107

108108
assert {:ok, statistics} = Task.await(cpu_task, :infinity)
109109
result = Templates.format_cpu_usage_by_core(statistics.cpu_snapshots)
110-
assert true == not is_nil(result)
110+
assert is_map(result)
111111
end
112112
end
113113
end

0 commit comments

Comments
 (0)