Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Conversation

@gauravkghildiyal
Copy link
Member

The driver is rate limited to updates with interval of atleast 5 seconds:

minInterval = 5 * time.Second

err := db.rateLimiter.Wait(ctx)

So we need to sleep for an equivalent amount of time to ensure state from a previous test is cleared up and old (non-existent) devices have been removed from the ResourceSlice. This seems to only be an an issue of the test where we create "dummy" interfaces which disappear if the network namespace is deleted.

We were previously sleeping for 5 seconds but that was changed in #208 to 2 seconds which is causing flakes like https://github.com/google/dranet/actions/runs/17281340446/job/49050151995

@gauravkghildiyal gauravkghildiyal force-pushed the fix-sleep-between-tests branch from 211d323 to c973f36 Compare August 28, 2025 00:13
@aojea aojea merged commit 66ad5a2 into google:main Aug 28, 2025
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants