Skip to content

Commit

Permalink
Merge pull request #865 from catalyst/totara-test-fail-35
Browse files Browse the repository at this point in the history
Unset class vars in test teardown
  • Loading branch information
matthewhilton authored Feb 21, 2024
2 parents e5de38d + 49b94e8 commit 6405c6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tool_dataflows_connector_compression_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ protected function setUp(): void {
set_config('gzip_exec_path', '/usr/bin/gzip', 'tool_dataflows');
}

protected function tearDown(): void {
$this->basedir = null;
}

/**
* Creates a test dataflow
*
Expand Down
5 changes: 5 additions & 0 deletions tests/tool_dataflows_flow_compression_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ protected function setUp(): void {
set_config('permitted_dirs', $basedir, 'tool_dataflows');
}

protected function tearDown(): void {
$this->readdir = null;
$this->outdir = null;
}

/**
* Creates a test dataflow
*
Expand Down

0 comments on commit 6405c6a

Please sign in to comment.