skillhub/github-sync-go/internal/worker/heartbeat_interop_test.go
XiaoSeS 2df4c913cb feat(github-sync): add continuous public repository discovery and skill sync
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
2026-10-20 14:40:46 +08:00

23 lines
534 B
Go

package worker
import (
"context"
"os"
"testing"
"github.com/iflytek/skillhub/github-sync-go/internal/controlplane"
)
func TestInteropWorkerHeartbeat(t *testing.T) {
if os.Getenv("SKILLHUB_INTEROP_HEARTBEAT") != "1" {
t.Skip("requires a Java HTTP worker heartbeat fixture")
}
control, err := controlplane.NewClient(os.Getenv("SKILLHUB_INTEROP_JAVA_URL"),
os.Getenv("SKILLHUB_INTEROP_SERVICE_TOKEN"))
if err != nil {
t.Fatal(err)
}
if err := control.Heartbeat(context.Background()); err != nil {
t.Fatal(err)
}
}