defmodule Microwaveprop.Valkey.RedixAdapterTest do use ExUnit.Case, async: true alias Microwaveprop.Valkey.RedixAdapter describe "command/3" do test "delegates to Redix.command/3" do # Without a real Redix process, the call raises or exits. # Using catch_exit asserts the delegation reaches Redix and fails # because :noproc is not a valid pid. assert catch_exit(RedixAdapter.command(:noproc, ["GET", "k"], [])) end end describe "pipeline/3" do test "delegates to Redix.pipeline/3" do assert catch_exit(RedixAdapter.pipeline(:noproc, [["GET", "k"]], [])) end end end