mirror of
https://github.com/NotAShelf/watchdog.git
synced 2026-04-15 14:54:00 +00:00
test: check and clean up correctpath
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Id14f80297f3e157ebcf5b2612220cd4b6a6a6964
This commit is contained in:
parent
ffa2af62be
commit
42e1fe83c7
1 changed files with 5 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue