diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efdab3ef..81649a8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,9 +35,6 @@ jobs: ruby-version: ${{matrix.ruby}} bundler-cache: true - - name: Remove libzstd-dev to check no supported compressions - run: sudo apt-get -y remove libzstd-dev - - name: Run Kafka with docker-compose run: | docker-compose up -d diff --git a/spec/lib/waterdrop/producer/sync_spec.rb b/spec/lib/waterdrop/producer/sync_spec.rb index e11bde76..266d8241 100644 --- a/spec/lib/waterdrop/producer/sync_spec.rb +++ b/spec/lib/waterdrop/producer/sync_spec.rb @@ -112,10 +112,10 @@ it { expect(delivery).to be_a(Rdkafka::Producer::DeliveryReport) } end - context 'when it is not installed zstd' do + context 'when it is installed zstd' do let(:codec) { 'zstd' } - it { expect { delivery }.to raise_error(Rdkafka::Config::ConfigError) } + it { expect(delivery).to be_a(Rdkafka::Producer::DeliveryReport) } end context 'when it is installed lz4' do