talos/internal/integration/api
Andrey Smirnov 3e100aa977
test: workaround EventsWatch test flakiness
This test sometimes fails with a message like:

```
=== RUN   TestIntegration/api.EventsSuite/TestEventsWatch
    assertion_compare.go:323:
        	Error Trace:	events.go:88
        	Error:      	"0" is not greater than or equal to "14"
        	Test:       	TestIntegration/api.EventsSuite/TestEventsWatch
        	Messages:   	[]
```

I believe the root cause is that the initial (first event) delivery
might be more than 100ms, so instead of waiting for 100ms for each
event, block for 500ms for all events to arrive.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2021-10-15 12:51:56 +03:00
..
api.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00
apply-config.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00
diskusage.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00
dmesg.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00
etcd-recover.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00
etcd.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00
events.go test: workaround EventsWatch test flakiness 2021-10-15 12:51:56 +03:00
generate-config.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00
logs.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00
reboot.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00
reset.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00
version.go chore: build using Go 1.17 2021-09-13 22:33:47 +03:00