mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-07 09:47:35 +08:00
Generate gateway token during onboard
This commit is contained in:
@@ -2,6 +2,15 @@ package config
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestDefaultConfigGeneratesGatewayToken(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
cfg := DefaultConfig()
|
||||
if cfg.Gateway.Token == "" {
|
||||
t.Fatalf("expected default gateway token")
|
||||
}
|
||||
}
|
||||
|
||||
func TestValidateSubagentsAllowsKnownPeers(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user