You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2021/07/10 18:40:59 UTC

[couchdb] 01/01: Fix __MODULE__ compiler variable warning

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch fix-compiler-warning
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 63e5e21a06431b0926c47c34f6d17bde17988e34
Author: Jay Doane <ja...@apache.org>
AuthorDate: Sat Jul 10 11:40:05 2021 -0700

    Fix __MODULE__ compiler variable warning
    
    Fixes:
    ```
    warning: unknown compiler variable "___MODULE__" (expected one of __MODULE__, __ENV__, __DIR__, __CALLER__, __STACKTRACE__)
      src/couchdb/test/elixir/lib/step/start.ex:62: Couch.Test.Setup.Step.Start.teardown/2
    ```
---
 test/elixir/lib/step/start.ex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/elixir/lib/step/start.ex b/test/elixir/lib/step/start.ex
index ea7c70f..d966b6a 100644
--- a/test/elixir/lib/step/start.ex
+++ b/test/elixir/lib/step/start.ex
@@ -59,7 +59,7 @@ defmodule Couch.Test.Setup.Step.Start do
     }
   end
 
-  def teardown(_setup, %___MODULE__{test_ctx: test_ctx}) do
+  def teardown(_setup, %__MODULE__{test_ctx: test_ctx}) do
     :test_util.stop_couch(test_ctx)
   end