forked from ChicagoBoss/ChicagoBoss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboss_mq_SUITE.erl
60 lines (40 loc) · 1020 Bytes
/
boss_mq_SUITE.erl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
%%%-------------------------------------------------------------------
%%% @author Zachary Kessin <>
%%% @copyright (C) 2013, Zachary Kessin
%%% @doc
%%%
%%% @end
%%% Created : 16 Dec 2013 by Zachary Kessin <>
%%%-------------------------------------------------------------------
-module(boss_mq_SUITE).
%% Note: This directive should only be used in test suites.
-compile(export_all).
-include_lib("common_test/include/ct.hrl").
suite() ->
[{timetrap,{minutes,10}}].
init_per_suite(Config) ->
Config.
end_per_suite(_Config) ->
ok.
init_per_group(_GroupName, Config) ->
Config.
end_per_group(_GroupName, _Config) ->
ok.
init_per_testcase(_TestCase, Config) ->
Config.
end_per_testcase(_TestCase, _Config) ->
ok.
groups() ->
[].
all() ->
[test_poll].
my_test_case() ->
[].
my_test_case(_Config) ->
ok.
test_poll() ->
[].
test_poll(_Config) ->
boss_mq:push("test", "Test Message"),
{ok, _T, "Test Message"} = boss_mq:poll("test", last),
ok.