MCPcopy Create free account
hub / github.com/github/copilot-sdk / TestClient_SessionIdleTimeoutSeconds

Function TestClient_SessionIdleTimeoutSeconds

go/client_test.go:551–569  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

549}
550
551func TestClient_SessionIdleTimeoutSeconds(t *testing.T) {
552 t.Run("should store SessionIdleTimeoutSeconds option", func(t *testing.T) {
553 client := NewClient(&ClientOptions{
554 SessionIdleTimeoutSeconds: 600,
555 })
556
557 if client.options.SessionIdleTimeoutSeconds != 600 {
558 t.Errorf("Expected SessionIdleTimeoutSeconds to be 600, got %d", client.options.SessionIdleTimeoutSeconds)
559 }
560 })
561
562 t.Run("should default SessionIdleTimeoutSeconds to zero", func(t *testing.T) {
563 client := NewClient(&ClientOptions{})
564
565 if client.options.SessionIdleTimeoutSeconds != 0 {
566 t.Errorf("Expected SessionIdleTimeoutSeconds to be 0, got %d", client.options.SessionIdleTimeoutSeconds)
567 }
568 })
569}
570
571func findCLIPathForTest() string {
572 base, err := filepath.Abs("../nodejs/node_modules/@github")

Callers

nothing calls this directly

Calls 1

NewClientFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…