Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests: sometimes is fail by reason usage time() #55

Open
vjik opened this issue Sep 12, 2023 · 0 comments
Open

Fix tests: sometimes is fail by reason usage time() #55

vjik opened this issue Sep 12, 2023 · 0 comments
Labels

Comments

@vjik
Copy link
Member

vjik commented Sep 12, 2023

Fail tests:

1) Yiisoft\Cookies\Tests\CookieTest::testFromCookieString with data set #0 ('sessionId=e8bb43229de9; Domai...traKey', Yiisoft\Cookies\Cookie Object (...))
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'sessionId=e8bb43229de9; Expires=Tue, 12 Sep 20[23](https://github.com/yiisoft/cookies/actions/runs/6158986545/job/16712880188#step:9:24) 12:50:00 GMT; Max-Age=3599; Domain=foo.example.com; Path=/test; Secure; HttpOnly; SameSite=Strict'
+'sessionId=e8bb43229de9; Expires=Tue, 12 Sep 2023 12:50:01 GMT; Max-Age=3600; Domain=foo.example.com; Path=/test; Secure; HttpOnly; SameSite=Strict'

/home/runner/work/cookies/cookies/tests/CookieTest.php:[24](https://github.com/yiisoft/cookies/actions/runs/6158986545/job/16712880188#step:9:25)8
phpvfscomposer:///home/runner/work/cookies/cookies/vendor/phpunit/phpunit/phpunit:106

2) Yiisoft\Cookies\Tests\CookieTest::testFromCookieString with data set #2 ('sessionId=e8bb432[29](https://github.com/yiisoft/cookies/actions/runs/6158986545/job/16712880188#step:9:30)de9; Domai...ge=bla', Yiisoft\Cookies\Cookie Object (...))
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'sessionId=e8bb4[32](https://github.com/yiisoft/cookies/actions/runs/6158986545/job/16712880188#step:9:33)29de9; Expires=Tue, 12 Sep 2023 11:50:00 GMT; Max-Age=-1; Domain=foo.example.com=test'
+'sessionId=e8bb43229de9; Expires=Tue, 12 Sep 2023 11:50:01 GMT; Max-Age=0; Domain=foo.example.com=test'
@vjik vjik added the type:test Test label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant