You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by be...@apache.org on 2021/03/01 19:59:41 UTC

[couchdb] branch main updated: Make session elixir test more robust

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

bessbd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new 04086e6  Make session elixir test more robust
04086e6 is described below

commit 04086e67161ef6facaee6a119afbfc0fbafacb45
Author: Bessenyei Balázs Donát <be...@apache.org>
AuthorDate: Mon Mar 1 20:28:22 2021 +0100

    Make session elixir test more robust
---
 test/elixir/test/basics_test.exs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/elixir/test/basics_test.exs b/test/elixir/test/basics_test.exs
index f8f9612..21c71f9 100644
--- a/test/elixir/test/basics_test.exs
+++ b/test/elixir/test/basics_test.exs
@@ -12,7 +12,7 @@ defmodule BasicsTest do
   test "Session contains adm context" do
     user_ctx = Couch.get("/_session").body["userCtx"]
     assert user_ctx["name"] == "adm", "Should have adm user context"
-    assert user_ctx["roles"] == ["_admin"], "Should have _admin role"
+    assert "_admin" in user_ctx["roles"], "Should have _admin role"
   end
 
   test "Welcome endpoint" do