Skip to content

Commit

Permalink
Item15145: fix RequestTests::test_upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Jun 20, 2022
1 parent 7e5dde1 commit 8564d84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UnitTestContrib/test/unit/RequestTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ EOF
$req->tmpFileName($fname),
'Wrong tmpFileName()'
);
my $fh = $req->upload('file');
my $fh = $req->upload('Temp.txt');
$this->assert($fh);
my $text = join( '', <$fh> );
$this->assert_str_equals( "Arbitrary file...\n",
$text, 'Wrong file contents' );
Expand Down

0 comments on commit 8564d84

Please sign in to comment.