fiber/middleware
Juan Calderon-Perez 0379cc59aa
fix: Inconsistent and flaky unit-tests (#2892)
* Fixes for some of the failing tests

* Add readiness check to serverStart()

* Use net/http client for tests listen test

* Use different key for this test

* Run Proxy Middleware tests in parallel. Add nil checks for potential issues pointed by nilaway

* Enable parallel client tests

* Do not run timing sensitive tests in parallel

* Remove TODO

* Revert Test_Proxy_DoTimeout_Timeout, and remove t.Parallel() for it

* Do not calculate favicon len on each handler call

* Revert logic change

* Increase timeout of SaveFile tests

* Do not run time sensitive tests in parallel

* The Agent can't be run in parallel

* Do not run time sensitive tests in parallel

* Fixes based on uber/nilaway

* Revert change to Client test

* Run parallel

* Update client_test.go

* Update client_test.go

* Update cache_test.go

* Update cookiejar_test.go

* Remove parallel for test using timeouts

* Remove t.Parallel() from logger middleware tests

* Do not use testify.require in a goroutine

* Fix import, and update golangci-lint

* Remove changes to template_chain.go

* Run more tests in parallel

* Add more parallel tests

* Add more parallel tests

* SetLogger can't run in parallel

* Run more tests in parallel, fix issue with goroutine in limiter middleware

* Update internal/storage/memory, add more benchmarks

* Increase sleep for csrf test by 100 milliseconds. Implement asserted and parallel benchmarks for Session middleware

* Add 100 milliseconds to sleep during test

* Revert name change

* fix: Inconsistent and flaky unit-tests

* fix: Inconsistent and flaky unit-tests

* fix: Inconsistent and flaky unit-tests

* fix: Inconsistent and flaky unit-tests

* fix: Inconsistent and flaky unit-tests

* fix: Inconsistent and flaky unit-tests

* fix: Inconsistent and flaky unit-tests

* fix: Inconsistent and flaky unit-tests

* fix: Inconsistent and flaky unit-tests

* fix: Inconsistent and flaky unit-tests

---------

Co-authored-by: M. Efe Çetin <efectn@protonmail.com>
Co-authored-by: René <rene@gofiber.io>
2024-03-08 20:03:13 +01:00
..
adaptor V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
basicauth ♻️ v3: fix!: ContextKey collisions (#2781) 2024-01-04 09:44:45 +01:00
cache fix: Inconsistent and flaky unit-tests (#2892) 2024-03-08 20:03:13 +01:00
compress 🚀 v3 Feature: Make app.Test accept a time.Duration timeout (#2269) 2024-03-05 08:59:39 +01:00
cors fix(middleware/cors): Validation of multiple Origins (#2883) 2024-03-01 13:30:40 +01:00
csrf fix: Inconsistent and flaky unit-tests (#2892) 2024-03-08 20:03:13 +01:00
earlydata V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
encryptcookie V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
envvar V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
etag Bump golangci-lint to v1.56.1 (#2842) 2024-02-13 08:23:15 +01:00
expvar Merge remote-tracking branch 'origin/master' into v3-beta 2023-08-05 22:02:01 +03:00
favicon fix: Inconsistent and flaky unit-tests (#2892) 2024-03-08 20:03:13 +01:00
filesystem V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
healthcheck ♻️ refactor: Migrate HealthChecker to v3 (#2884) 2024-02-29 08:50:13 +01:00
helmet ci: address multiple lint rules (#2869) 2024-02-19 14:33:10 +01:00
idempotency fix: Inconsistent and flaky unit-tests (#2892) 2024-03-08 20:03:13 +01:00
keyauth V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
limiter fix: Inconsistent and flaky unit-tests (#2892) 2024-03-08 20:03:13 +01:00
logger fix: Inconsistent and flaky unit-tests (#2892) 2024-03-08 20:03:13 +01:00
pprof 🚀 v3 Feature: Make app.Test accept a time.Duration timeout (#2269) 2024-03-05 08:59:39 +01:00
proxy fix: Inconsistent and flaky unit-tests (#2892) 2024-03-08 20:03:13 +01:00
recover Bump golangci-lint to v1.56.1 (#2842) 2024-02-13 08:23:15 +01:00
redirect V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
requestid chore: Fix testifylint errors in middleware (#2805) 2024-01-21 08:32:23 +01:00
rewrite V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00
session fix: Inconsistent and flaky unit-tests (#2892) 2024-03-08 20:03:13 +01:00
skip Merge remote-tracking branch 'origin/master' into v3-beta 2023-08-05 22:02:01 +03:00
timeout V2 to v3 merge (#2864) 2024-02-29 08:29:59 +01:00