2017-05-18 21 views
0

我試圖從CPAN構建Dancer2::Plugin::Auth::OAuth模塊。測試失敗:未能通過CPAN測試構建Dancer2 :: Plugin :: Auth :: OAuth

Running Build test 
t/01-dancer.t .......... 1/? 
# Failed test '[github] Session data' 
# at t/01-dancer.t line 238. 
#  Structures begin differing at: 
#   $got->{user_info}{site_admin} = 'false' 
#  $expected->{user_info}{site_admin} = '0' 

# Failed test '[stackexchange] Session data' 
# at t/01-dancer.t line 238. 
#  Structures begin differing at: 
#   $got->{user_info}{has_more} = 'false' 
#  $expected->{user_info}{has_more} = '0' 
# Looks like you failed 2 tests of 55. 

但是,CPAN testers reports都是綠色的爲Linux所以它可能出錯了我的系統上。

我該看什麼?

OS:CentOS的7.3
的Perl:5.16.3(發行版包裝)

回答

1

這在我看來就像一個bug的測試

Perl使用0"0"""undef和其他一切都是true

此輸出

#   $got->{user_info}{site_admin} = 'false' 
#  $expected->{user_info}{site_admin} = '0' 

說,散元素被設置爲字符串false當測試預計零

因爲這是隻有兩名55次測試,是給一個問題,我會安裝使用

cpan -f Dancer2::Plugin::Auth::OAuth 
+0

我在想這些......只是驚訝它沒有被CPAN測試人員抓住。我接受了你的建議並且做了一個力量......沒有其他錯誤,我猜我會嘗試使用它並且看看它是如何發生的。 – TheAmigo

相關問題