mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-04 04:34:07 +09:00
servertest: fail step checks that never hold
A match on the last sample before the deadline no longer passes.
This commit is contained in:
1 parent
95f6116a87
commit
4c7d88c08e
2 files changed
+8
-1
No files matched your search
@@ -349,6 +349,11 @@ func holdChecks(
|
||||
}
|
||||
}
|
||||
|
||||
// A last-sample match is not a settled one.
|
||||
if held < holdTicks {
|
||||
t.Errorf("%s: checks still changing at the deadline", strings.TrimSuffix(prefix, "/"))
|
||||
}
|
||||
|
||||
for i, c := range checks {
|
||||
key := prefix + c.name
|
||||
evaluated[key] = true
|
||||
|
||||
@@ -871,7 +871,9 @@ func (r *stepReplay) apply(t *testing.T, step testcapture.Step) map[string]error
|
||||
}
|
||||
|
||||
case "wait":
|
||||
// SaaS settle time.
|
||||
// SaaS settle time. The test server runs no scheduled tasks
|
||||
// (expiry, HA probes), so passing time alone changes nothing
|
||||
// but ephemeral collection, which its consumers shorten.
|
||||
|
||||
default:
|
||||
t.Fatalf("%s: no replay for action %q", step.Name, a.Kind)
|
||||
|
||||
Reference in new issue
Block a user