diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2016-09-05 16:42:05 +0200 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2016-09-05 16:42:05 +0200 |
commit | 96a748d34f05f31c3b045a54f9d4ab0555e0f9cc (patch) | |
tree | dd6fb75ec9f37b7b6c8b3a185e5f670af44e6da1 | |
parent | Merge remote-tracking branch 'processone/pr/1262' (diff) |
ejabberd_oauth requiere working cache_tab, initialize it before tests
-rw-r--r-- | test/ejabberd_oauth_mock.exs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ejabberd_oauth_mock.exs b/test/ejabberd_oauth_mock.exs index e6a34f65..965bff1e 100644 --- a/test/ejabberd_oauth_mock.exs +++ b/test/ejabberd_oauth_mock.exs @@ -26,7 +26,10 @@ defmodule EjabberdOauthMock do :mnesia.start :mnesia.create_table(:oauth_token, [ram_copies: [node], - attributes: [:oauth_token, :us, :scope, :expire]]) + attributes: [:oauth_token, :us, :scope, :expire]]) + :application.start(:cache_tab) + :cache_tab.new(:oauth_token, + [{:max_size, 1000}, {:life_time, 3600}]) end def get_token(user, domain, command, expiration \\ 3600) do |