From 1fd302b59efc495b6b9691da00fda3485af9c0b4 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sun, 9 Mar 2025 10:04:02 +0100 Subject: [PATCH] Fix expired transients tests --- features/transient.feature | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/features/transient.feature b/features/transient.feature index 6f10b46d..bba5f641 100644 --- a/features/transient.feature +++ b/features/transient.feature @@ -127,10 +127,10 @@ Feature: Manage WordPress transient cache Scenario: Deleting expired transients on single site Given a WP install - And I run `wp transient set foo bar 60` - And I run `wp transient set foo2 bar2 60` - And I run `wp transient set foo3 bar3 60 --network` - And I run `wp transient set foo4 bar4 60 --network` + And I run `wp transient set foo bar 600` + And I run `wp transient set foo2 bar2 600` + And I run `wp transient set foo3 bar3 600 --network` + And I run `wp transient set foo4 bar4 600 --network` # Change timeout to be in the past. And I run `wp option update _transient_timeout_foo 1321009871` And I run `wp option update _site_transient_timeout_foo3 1321009871` @@ -294,12 +294,12 @@ Feature: Manage WordPress transient cache Scenario: Deleting expired transients on multisite Given a WP multisite install And I run `wp site create --slug=foo` - And I run `wp transient set foo bar 60` - And I run `wp transient set foo2 bar2 60` - And I run `wp transient set foo3 bar3 60 --network` - And I run `wp transient set foo4 bar4 60 --network` - And I run `wp --url=example.com/foo transient set foo5 bar5 60 --network` - And I run `wp --url=example.com/foo transient set foo6 bar6 60 --network` + And I run `wp transient set foo bar 600` + And I run `wp transient set foo2 bar2 600` + And I run `wp transient set foo3 bar3 600 --network` + And I run `wp transient set foo4 bar4 600 --network` + And I run `wp --url=example.com/foo transient set foo5 bar5 600 --network` + And I run `wp --url=example.com/foo transient set foo6 bar6 600 --network` # Change timeout to be in the past. And I run `wp option update _transient_timeout_foo 1321009871` And I run `wp site option update _site_transient_timeout_foo3 1321009871`