summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2020-11-23 19:52:11 -0300
committerMatias Linares <matiaslina@gmail.com>2020-11-23 19:52:11 -0300
commit346f058b08e3c0b911243f59996cd0ef635ae211 (patch)
tree21bdbca708d46cbaa34dcf183dd48b66fb8fd9bc
parent4cd5b4da65ee1d94ea8b6ce54e990e0bdda99053 (diff)
downloadperl6-matrix-client-346f058b08e3c0b911243f59996cd0ef635ae211.tar.gz
Fix tests
-rw-r--r--t/40-response.t2
-rw-r--r--t/60-media.t2
2 files changed, 3 insertions, 1 deletions
diff --git a/t/40-response.t b/t/40-response.t
index 8bc3569..c401378 100644
--- a/t/40-response.t
+++ b/t/40-response.t
@@ -30,7 +30,7 @@ subtest 'Sync', {
subtest 'MediaStore', {
plan 4;
my %config = 'm.upload.size' => 5000;
- my $config-response = Matrix::Response::MediaStore::Config.new(|%config);
+ my $config-response = Matrix::Response::MediaStore::Config.new(%config);
isa-ok $config-response, Matrix::Response::MediaStore::Config;
can-ok $config-response, 'upload-size';
diff --git a/t/60-media.t b/t/60-media.t
index 5601d8a..2417cb1 100644
--- a/t/60-media.t
+++ b/t/60-media.t
@@ -7,6 +7,8 @@ my $path = $*TMPDIR.add('matrix-client-test');
LEAVE { unlink $path; }
$path.spurt("") unless $path.f;
+plan 3;
+
subtest 'Upload', {
plan 5;
# Mock the post-bin method of Matrix::Client::Requester.