(t *testing.T)
| 549 | } |
| 550 | |
| 551 | func 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 | |
| 571 | func findCLIPathForTest() string { |
| 572 | base, err := filepath.Abs("../nodejs/node_modules/@github") |
nothing calls this directly
no test coverage detected
searching dependent graphs…