3
0
mirror of https://github.com/rvalitov/zabbix-php-fpm.git synced 2023-11-05 03:30:27 +01:00

[add] clear cache in tests

This commit is contained in:
Ramil Valitov 2020-07-07 12:29:21 +03:00
parent a8e3d1660f
commit 5b5765d8a3
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -131,6 +131,13 @@ oneTimeSetUp() {
echo "All done, starting tests..." echo "All done, starting tests..."
} }
#Called before every test
setUp() {
#Delete all cache files
sudo rm -rf "/etc/zabbix/*.cache"
}
#Called after every test
tearDown() { tearDown() {
restoreUserParameters restoreUserParameters
sleep 2 sleep 2