Item340: PreferencesPlugin unit tests fail
Priority: Urgent
Current State: Closed
Released In: 1.0.0
Target Release: patch
PreferencesPlugin unit tests fail.
TWikiFn -> FoswikiFn missed again
--
KennethLavrsen - 29 Nov 2008
Now that is fixed and the tests run we have a failure in the plugin.
I have no clue why.
Probably another FSA related issue.
***
Assertion failed at PreferencesPlugin//PreferencesPluginTests.pm line 113
PreferencesPluginTests::test_save('PreferencesPluginTests=HASH(0x9b0fc78)') called at /var/www/foswiki/core/lib/Unit/TestRunner.pm line 49
Unit::TestRunner::__ANON__() called at /var/www/foswiki/core/lib/CPAN/lib/Error.pm line 379
eval {...} called at /var/www/foswiki/core/lib/CPAN/lib/Error.pm line 371
Error::subs::try('CODE(0xa1f2964)', 'HASH(0xa1be02c)') called at /var/www/foswiki/core/lib/Unit/TestRunner.pm line 55
Unit::TestRunner::start('Unit::TestRunner=HASH(0x97afcac)', 'PreferencesPlugin/PreferencesPluginSuite.pm') called
PreferencesPluginTests::test_edit_simple
PreferencesPluginTests::test_view
1 failures
PreferencesPluginTests::test_save
--
KennethLavrsen - 29 Nov 2008
line 113 is
$this->assert($result =~ /Status: 302/);
Exact same test that fails in
EditTablePlugin
The two probably uses similar method
Release blocker for 1.0.0
--
KennethLavrsen - 29 Nov 2008
Fixed 'em both (checkins under
Item323) the problem is that the response has to be finalised before output is generated that the test can analyse.