Revision 7f4e472cc131f5a687ec44524ff106a80cadff3f authored by Lorenz Bauer on 13 February 2024, 10:24:58 UTC, committed by Lorenz Bauer on 14 February 2024, 09:56:48 UTC
Watcher.loop will never exit if Watcher.Close is called while an event or error is being written to w.Errors or w.Events. Fix this by checking for w.stop. This allows running TestWatcher a couple thousand times without running into "too many open files". Fixes: 1cab8f375a ("certloader: Add fswatcher package") Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
1 parent b973589
.travis.yml
language: go
dist: focal
sudo: required
# renovate: datasource=golang-version depName=go
go: "1.21.6"
jobs:
include:
- arch: arm64-graviton2
virt: vm
group: edge
if: branch = main OR type = pull_request
addons:
apt:
packages:
- kernel-package
- gnupg
- libncurses5
before_install: ./.travis/prepare.sh
before_script:
- export DOCKER_BUILD_FLAGS=--quiet
- export PATH=/usr/local/clang/bin:$PATH
script: ./.travis/build.sh
notifications:
email: false
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...