test: check and clean up correctpath

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id14f80297f3e157ebcf5b2612220cd4b6a6a6964
This commit is contained in:
raf 2026-03-10 08:55:32 +03:00
commit 42e1fe83c7
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -195,6 +195,9 @@ func TestEndToEnd_GracefulShutdown(t *testing.T) {
MaxSources: 50,
MaxCustomEvents: 10,
},
Server: config.ServerConfig{
StatePath: "/tmp/watchdog-test.state",
},
}
pathRegistry := aggregate.NewPathRegistry(cfg.Limits.MaxPaths)
@ -223,12 +226,12 @@ func TestEndToEnd_GracefulShutdown(t *testing.T) {
}
// Verify state file was created
if _, err := os.Stat("/tmp/watchdog-hll.state"); os.IsNotExist(err) {
if _, err := os.Stat("/tmp/watchdog-test.state"); os.IsNotExist(err) {
t.Error("HLL state file was not created")
}
// Cleanup
os.Remove("/tmp/watchdog-hll.state")
os.Remove("/tmp/watchdog-test.state")
}
func TestEndToEnd_InvalidRequests(t *testing.T) {