feat(cli): add ctrld diag for provisioning support

This commit is contained in:
Anthony Wong
2026-09-04 16:47:29 +07:00
committed by Cuong Manh Le
parent 0f821a7907
commit e8e04ae094
8 changed files with 987 additions and 5 deletions
+14
View File
@@ -0,0 +1,14 @@
package controld
import (
"context"
"testing"
)
func TestProbeReachabilityRespectsCancelledContext(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
cancel()
if err := ProbeReachability(ctx, false); err == nil {
t.Error("expected an error for an already-cancelled context")
}
}