Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit062506e

Browse files
committed
chore(clean-up): wip tags in tests
1 parent8106067 commit062506e

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

‎test/groupher_server/statistics/statistics_test.exs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ defmodule GroupherServer.Test.Statistics do
121121
assertsecond.count==2
122122
end
123123

124-
@tag:wip
125124
test"should return recent#{@community_contribute_days} days community contributes by default",
126125
~m(community)ado
127126
days_ago=Timex.shift(Timex.today(),days:-@community_contribute_days)
@@ -148,7 +147,6 @@ defmodule GroupherServer.Test.Statistics do
148147
assertlength(contributes)==@community_contribute_days+1
149148
end
150149

151-
@tag:wip
152150
test"the contributes data should be cached after first query",~m(community)ado
153151
scope=Cache.get_scope(:community_contributes,community.id)
154152
assert{:error,nil}=Cache.get(scope)
@@ -158,7 +156,6 @@ defmodule GroupherServer.Test.Statistics do
158156
assert{:ok,contributes}=Cache.get(scope)
159157
end
160158

161-
@tag:wip2
162159
test"Rihanna should work in test sandbox",~m(community)ado
163160
res=Rihanna.enqueue({IO,:puts,["Work, work, work, work, work."]})
164161
Process.sleep(1000)

‎test/helper/cache_test.exs‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ defmodule GroupherServer.Test.Helper.Cache do
55
aliasHelper.Cache
66

77
describe"[cache test]"do
8-
@tag:wip
98
test"cache get unexsit key should get nil"do
109
assert{:error,nil}=Cache.get("no exsit")
1110
assert{:error,nil}=Cache.get(:no_exsit)
1211
end
1312

14-
@tag:wip
1513
test"cache put should work"do
1614
assert{:error,nil}=Cache.get(:data)
1715

@@ -27,7 +25,6 @@ defmodule GroupherServer.Test.Helper.Cache do
2725
assert{:ok,[1,%{a:"2"}]}=Cache.get("namespace.aaa.bbb")
2826
end
2927

30-
@tag:wip2
3128
test"cache can be clear"do
3229
assert{:ok,true}=Cache.put(:data,"value")
3330
assert{:ok,"value"}=Cache.get(:data)
@@ -36,7 +33,6 @@ defmodule GroupherServer.Test.Helper.Cache do
3633
assert{:error,nil}=Cache.get(:data)
3734
end
3835

39-
@tag:wip2
4036
test"cache expire should work"do
4137
assert{:ok,true}=Cache.put(:data,"value",expire:1000)
4238
assert{:ok,"value"}=Cache.get(:data)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp