mirror of
https://github.com/NotAShelf/watchdog.git
synced 2026-04-26 11:29:58 +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,
|
MaxSources: 50,
|
||||||
MaxCustomEvents: 10,
|
MaxCustomEvents: 10,
|
||||||
},
|
},
|
||||||
|
Server: config.ServerConfig{
|
||||||
|
StatePath: "/tmp/watchdog-test.state",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
pathRegistry := aggregate.NewPathRegistry(cfg.Limits.MaxPaths)
|
pathRegistry := aggregate.NewPathRegistry(cfg.Limits.MaxPaths)
|
||||||
|
|
@ -223,12 +226,12 @@ func TestEndToEnd_GracefulShutdown(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify state file was created
|
// 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")
|
t.Error("HLL state file was not created")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleanup
|
// Cleanup
|
||||||
os.Remove("/tmp/watchdog-hll.state")
|
os.Remove("/tmp/watchdog-test.state")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestEndToEnd_InvalidRequests(t *testing.T) {
|
func TestEndToEnd_InvalidRequests(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue