daemon: Fix waiting on metrics in endpoint_test.go
daemon: Fix waiting on metrics in endpoint_test.go

This commit fixes a flake where the metrics do not update as quickly as
we expect. It is fixed by waiting for up to 10 seconds to retrieve the
metric value we expect.

Fixes: 4a4a59b127 ("daemon: Add assertions for endpoint state metrics")

Signed-off-by: Chris Tarazi <711c73f64afdce07b7e38039a96d2224209e9a6c@isovalent.com>

tgraf/cilium,tgraf/cilium,tgraf/cilium,cilium/cilium,cilium/cilium,tgraf/cilium,michi-covalent/cilium,tgraf/cilium,tklauser/cilium,tklauser/cilium,tklauser/cilium,cilium/cilium,cilium-team/cilium,tgraf/cilium,michi-covalent/cilium,tklauser/cilium,cilium/cilium,tklauser/cilium,cilium-team/cilium,cilium/cilium,michi-covalent/cilium,michi-covalent/cilium,michi-covalent/cilium