Skip to content

Commit

Permalink
Merge pull request #6 from escobera/fix/clean-test-output
Browse files Browse the repository at this point in the history
fix: add capture_log tags to cleanup test output a bit
  • Loading branch information
oliveigah authored Jun 10, 2024
2 parents 87e0405 + a2d6a8d commit 37f067f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/connection/system_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ defmodule Klife.Connection.SystemTest do
Enum.each(brokers_list_3, &check_broker_connection(cluster_name_3, &1))
end

@tag :cluster_change
@tag cluster_change: true, capture_log: true
test "cluster changes events" do
config = [
connection: [
Expand Down
3 changes: 2 additions & 1 deletion test/producer/producer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ defmodule Klife.ProducerTest do
assert :snappy = KlifeProtocol.RecordBatch.decode_attributes(attr).compression
end

@tag :cluster_change
@tag cluster_change: true, capture_log: true
test "is able to recover from cluster changes" do
topic = "test_no_batch_topic"

Expand Down Expand Up @@ -885,6 +885,7 @@ defmodule Klife.ProducerTest do
assert_offset(MyCluster, rec6, offset6, txn_status: :committed)
end

@tag capture_log: true
test "txn produce message - multiple transactions using the same worker" do
rec1 = %Record{
value: :rand.bytes(10),
Expand Down

0 comments on commit 37f067f

Please sign in to comment.