2017-05-18 22 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

相关问题